]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/30040 (-mtune=native is wrong for Core 2 Duo and Core Duo)
authorH.J. Lu <hongjiu.lu@intel.com>
Sat, 2 Dec 2006 22:18:25 +0000 (22:18 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sat, 2 Dec 2006 22:18:25 +0000 (14:18 -0800)
commitedccdcb19865cdc271cf2eead76d8aebc7ca89d3
tree9b835745a452dc93b18173007faa8ff798b06f07
parenta9690009903e4d8df766361db87da3098f4aa42f
re PR target/30040 (-mtune=native is wrong for Core 2 Duo and Core Duo)

2006-12-02  H.J. Lu  <hongjiu.lu@intel.com>

PR target/30040
* config/i386/driver-i386.c: Include "coretypes.h" and "tm.h".
(bit_SSSE3): New.
(host_detect_local_cpu): Check -mtune= vs. -march=. Rewrite
processor detection.

* config/i386/i386.h (CC1_CPU_SPEC): Add -mtune=native for
-march=native if there is no -mtune=*.

* config/i386/x-i386 (driver-i386.o): Also depend on $(TM_H)
coretypes.h.

From-SVN: r119454
gcc/ChangeLog
gcc/config/i386/driver-i386.c
gcc/config/i386/i386.h
gcc/config/i386/x-i386