<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On Jan 8, 2007, at 11:05 AM, Reid Spencer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica">OK. I suspect this may not be straight forward. Let's see.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica">-</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Devang</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br><span><i386.patch></span></div></blockquote></div></blockquote></div><br><div>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.</div><div><br class="webkit-block-placeholder"></div><div>Your patch should work. However, I am testing following to cover everything under i386* and x86* umbrella in one shot.</div><div><br class="webkit-block-placeholder"></div><div>-</div><div>Devang</div><div><br class="webkit-block-placeholder"></div><div><div>Index: config.gcc</div><div>===================================================================</div><div>--- config.gcc  (revision 122065)</div><div>+++ config.gcc  (working copy)</div><div>@@ -269,11 +269,17 @@ xscale-*-*)</div><div> # APPLE LOCAL begin mni 4424835</div><div> i[34567]86-*-*)</div><div>        cpu_type=i386</div><div>+# APPLE LOCAL begin LLVM</div><div>+       out_cxx_file=i386/llvm-i386.cpp</div><div>+# APPLE LOCAL end LLVM                               </div><div>        extra_headers="mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h</div><div>                       pmmintrin.h tmmintrin.h"</div><div>        ;;</div><div> x86_64-*-*)</div><div>        cpu_type=i386</div><div>+# APPLE LOCAL begin LLVM</div><div>+       out_cxx_file=i386/llvm-i386.cpp</div><div>+# APPLE LOCAL end LLVM                               </div><div>        extra_headers="mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h</div><div>                       pmmintrin.h tmmintrin.h"</div><div>        need_64bit_hwint=yes</div><div>@@ -966,9 +972,6 @@ i[34567]86-*-darwin*)</div><div>  # APPLE LOCAL end mainline 2005-10-02 4218570</div><div>        # APPLE LOCAL 4099000</div><div>        tmake_file="${tmake_file} i386/t-darwin"</div><div>-# APPLE LOCAL begin LLVM</div><div>-       out_cxx_file=i386/llvm-i386.cpp</div><div>-# APPLE LOCAL end LLVM                               </div><div>        # APPLE LOCAL 4126124</div><div>        need_64bit_hwint=yes</div><div>        ;;</div><br class="webkit-block-placeholder"></div></body></html>