On Jan 8, 2007, at 11:08 AM, Devang Patel wrote:
On Jan 8, 2007, at 11:05 AM, Reid Spencer wrote:
OK. I suspect this may not be straight forward. Let's see.
-
Devang
<i386.patch>
config.gcc selects target specific C source file name based on
cpu_type (by default). So, I thought it may not be super easy to
trace all uses of i386.c.
Your patch should work. However, I am testing following to cover
everything under i386* and x86* umbrella in one shot.
Following works for darwin-x86. I applied this. Let me know if this
does not work for your target.
-
Devang
-
Devang
Index: config.gcc
===================================================================
--- config.gcc (revision 122065)
+++ config.gcc (working copy)
@@ -269,11 +269,17 @@ xscale-*-*)
# APPLE LOCAL begin mni 4424835
i[34567]86-*-*)
cpu_type=i386
+# APPLE LOCAL begin LLVM
+ out_cxx_file=i386/llvm-i386.cpp
+# APPLE LOCAL end LLVM
extra_headers="mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
pmmintrin.h tmmintrin.h"
;;
x86_64-*-*)
cpu_type=i386
+# APPLE LOCAL begin LLVM
+ out_cxx_file=i386/llvm-i386.cpp
+# APPLE LOCAL end LLVM
extra_headers="mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
pmmintrin.h tmmintrin.h"
need_64bit_hwint=yes
@@ -966,9 +972,6 @@ i[34567]86-*-darwin*)
# APPLE LOCAL end mainline 2005-10-02 4218570
# APPLE LOCAL 4099000
tmake_file="${tmake_file} i386/t-darwin"
-# APPLE LOCAL begin LLVM
- out_cxx_file=i386/llvm-i386.cpp
-# APPLE LOCAL end LLVM
# APPLE LOCAL 4126124
need_64bit_hwint=yes
;;
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits