From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Orth To: gcc-gnats@gcc.gnu.org Subject: preprocessor/2074: cpp doesn't emit builtin macros with -E/-save-temps Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <200102232056.VAA0000335864@bartok.TechFak.Uni-Bielefeld.DE> X-SW-Source: 2001-q1/msg01634.html List-Id: >Number: 2074 >Category: preprocessor >Synopsis: cpp doesn't emit builtin macros with -E/-save-temps >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Feb 23 13:06:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Rainer Orth >Release: 3.0 20010221 (prerelease) >Organization: Faculty of Technology, Bielefeld University >Environment: System: OSF1 bartok V5.1 732 alpha Machine: alpha host: alpha-dec-osf5.1 build: alpha-dec-osf5.1 target: alpha-dec-osf5.1 configured with: /vol/gnu/src/gcc/gcc-3.0-branch/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --enable-shared --disable-nls alpha-dec-osf5.1 >Description: Whereas gcc 2.95 emitted the definitions of builtin macros (like __STDC__) in gcc -E or gcc -save-temps output, the current version (with integrated cpp) does not (this behaviour already occurs in gcc 2.96 20000725 (experimental)). This makes it quite hard to investigate problems especially in gcc -g3 -E output. Since this is a regression from 2.95, this should be fixed before the 3.0 release. >How-To-Repeat: % touch test.c % gcc -v -g3 -E test.c -o test.i Reading specs from /vol/gnu/lib/gcc-lib/alpha-dec-osf4.0b/2.95/specs gcc version 2.95 19990728 (release) /vol/gnu/lib/gcc-lib/alpha-dec-osf4.0b/2.95/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dunix -D__osf__ -D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix -D__SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4) -g3 -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C -Acpu(alpha) -Amachine(alpha) -D__alpha -D__alpha__ -D__alpha_ev4__ -Acpu(ev4) test.c -o test.i GNU CPP version 2.95 19990728 (release) #include "..." search starts here: #include <...> search starts here: /vol/gnu/include /vol/gnu/share/alpha-dec-osf4.0b/include /vol/gnu/lib/gcc-lib/alpha-dec-osf4.0b/2.95/include /usr/include End of search list. The following default directories have been omitted from the search path: /vol/gnu/include/g++-3 End of omitted list. % grep STDC test.i #define __STDC__ 1 % /var/tmp/gcc/gcc/xgcc -B/var/tmp/gcc/gcc/ -v -g3 -E test.c -o test.i Reading specs from /var/tmp/gcc/gcc/specs Configured with: /vol/gnu/src/gcc/gcc-3.0-branch/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --enable-shared --disable-nls alpha-dec-osf5.1 gcc version 3.0 20010221 (prerelease) /var/tmp/gcc/gcc/cpp0 -lang-c -v -iprefix /var/tmp/gcc/gcc/../lib/gcc-lib/alpha-dec-osf5.1/3.0/ -isystem /var/tmp/gcc/gcc/include -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=0 -Dunix -D__osf__ -D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix -D__SYSTYPE_BSD -Asystem=unix -Asystem=xpg4 -D__STDC_HOSTED__=1 -dD -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C -Acpu=alpha -Amachine=alpha -D__alpha -D__alpha__ -D__alpha_ev4__ -Acpu=ev4 test.c -o test.i GNU CPP version 3.0 20010221 (prerelease) (cpplib) ignoring nonexistent directory "/var/tmp/gcc/lib/gcc-lib/alpha-dec-osf5.1/3.0/include" ignoring nonexistent directory "/vol/gcc/lib/gcc-lib/alpha-dec-osf5.1/3.0/include" ignoring nonexistent directory "/vol/gcc/share/alpha-dec-osf5.1/include" #include "..." search starts here: #include <...> search starts here: /var/tmp/gcc/gcc/include /vol/gcc/include /usr/include End of search list. % grep STDC test.i #define __STDC_HOSTED__ 1 >Fix: >Release-Note: >Audit-Trail: >Unformatted: