public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/863
@ 2001-04-01  0:00 rth
  0 siblings, 0 replies; only message in thread
From: rth @ 2001-04-01  0:00 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/863; it has been noted by GNATS.

From: rth@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org, reichelt@igpm.rwth-aachen.de
Cc:  
Subject: Re: optimization/863
Date: 16 Jan 2001 17:37:26 -0000

 Synopsis: wrong optimization of STL's find() algorithm by g++
 
 State-Changed-From-To: open->closed
 State-Changed-By: rth
 State-Changed-When: Tue Jan 16 09:37:26 2001
 State-Changed-Why:
     Fixed.
     
     http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01336.html
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=863&database=gcc
>From ro@TechFak.Uni-Bielefeld.DE Sun Apr 01 00:00:00 2001
From: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
To: gcc-gnats@gcc.gnu.org
Subject: preprocessor/2075: cpp doesn't emit builtin macros with -E/-save-temps
Date: Sun, 01 Apr 2001 00:00:00 -0000
Message-id: <14998.52946.31638.548829@xayide.TechFak.Uni-Bielefeld.DE>
X-SW-Source: 2001-q1/msg01635.html
Content-length: 3566

>Number:         2075
>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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-01  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-01  0:00 optimization/863 rth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).