This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello! Attached patch teaches i386 driver to ignore -march and -mtune switches for native target when the driver is not compiled with gcc. By ignoring the switches, the compiler generates code for its default target, which is max that we can do in this case (*). The driver also optimizes concatenation of options a bit. 2009-06-02 Uros Bizjak <ubizjak@gmail.com> * config/i386/driver-i386.c (describe_cache): Optimize concatenation of strings. (host_detect_local_cpu): Ditto. (host_detect_local_cpu): Ignore -march and -mtune for native target when not compiling with GCC. Any comments on this approach? (*) driver uses gcc specific asm to use cpuid insn, so it must be compiled using gcc. Uros.
Attachment:
p.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |