+++ This bug was initially created as a clone of Bug #15913 "[4.0 Regression] Preprocessor dies on // comment if --traditional-cpp is specified" +++
The example in Bug #15913 compiles correctly with trunk revision 144203 but the Testsuite ../gcc_trunk/gcc/testsuite/gcc.dg/cpp/trad/include.c does not. It compile without an ICE using gcc 3.4.3 so this is a Regression on the Trunk. Works (gcc "3.4.3 (csl-sol210-3_4-branch+sol_rpath)") : # /usr/sfw/bin/gcc -v Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) #/usr/sfw/bin/gcc -m64 -E --traditional-cpp ../gcc_trunk/gcc/testsuite/gcc.dg/cpp/trad/include.c -o delete-include.i # (no error messages) Works (Without "--traditional-cpp") : # /usr/local/bin/gcc -m64 -E /usr/share/src/gcc_trunk/gcc/testsuite/gcc.dg/cpp/trad/include.c -o delete-include.i /usr/share/src/gcc_trunk/gcc/testsuite/gcc.dg/cpp/trad/include.c:10:1: warning: "__STDC__" redefined # (no error messages) Works (Without "-m64") : # /usr/local/bin/gcc -E --traditional-cpp /usr/share/src/gcc_trunk/gcc/testsuite/gcc.dg/cpp/trad/include.c -o delete-include.i # (no error messages) ICE (use both "-m64" and "--traditional-cpp"): # /usr/local/bin/gcc -v Using built-in specs. Target: i386-pc-solaris2.11 Configured with: ../gcc_trunk/configure --build=i386-pc-solaris2.11 --enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --enable-shared --disable-static --enable-multilib --enable-decimal-float --with-long-double-128 --with-included-gettext --enable-stage1-checking --enable-checking=release --with-tune=k8 --with-cpu=k8 --with-arch=k8 --with-gnu-as --with-as=/usr/local/bin/as --without-gnu-ld --with-ld=/usr/bin/amd64/ld --with-gmp=/usr/local --with-mpfr=/usr/local --without-ppl Thread model: posix gcc version 4.4.0 20090216 (experimental) [trunk revision 144203] (GCC) # /usr/local/bin/gcc -m64 -E --traditional-cpp /usr/share/src/gcc_trunk/gcc/testsuite/gcc.dg/cpp/trad/include.c -o delete-include.i <built-in>:0: internal compiler error: Abort Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Thanks, Rob -- Summary: [4.4 Regression] Preprocessor ICE with -m64 and -- traditional-cpp Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rob1weld at aol dot com GCC build triplet: i386-pc-solaris2.11 GCC host triplet: i386-pc-solaris2.11 GCC target triplet: i386-pc-solaris2.11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39213