This patch: 2006-12-02 H.J. Lu <[EMAIL PROTECTED]>
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. Causes cross compilers targetting non-x86 architectures to fail to build: /home/rearnsha/gnusrc/gcc-cross/trunk/gcc/config/i386/driver-i386.c: In function `host_detect_local_cpu': /home/rearnsha/gnusrc/gcc-cross/trunk/gcc/config/i386/driver-i386.c:64: `PROCESS OR_I386' undeclared (first use in this function) /home/rearnsha/gnusrc/gcc-cross/trunk/gcc/config/i386/driver-i386.c:64: (Each un declared identifier is reported only once /home/rearnsha/gnusrc/gcc-cross/trunk/gcc/config/i386/driver-i386.c:64: for each function it appears in.) Why is this file even needed for targetting an ARM system? gcc configured with: .../configure --prefix=/work/rearnsha/gnu/ trunk/testinstall --enable-checking=release --target=arm-eabi --with-headers=/ho me/rearnsha/gnusrc/gcc-cross/trunk/newlib/libc/include --with-newlib --disable-l ibmudflap --with-gmp=/home/rearnsha/gnu/install/x86 --enable-languages=c,c++ -- Summary: [4.3 Regression] Cross compiler build failure on i386 host Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rearnsha at gcc dot gnu dot org GCC host triplet: i686-linux GCC target triplet: arm-none-eabi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30074