Optimization bug in 19990214
Jeffrey A Law
law@cygnus.com
Fri Jun 25 07:24:00 GMT 1999
In message <36C966BF.E723254A@acm.org>you write:
> This is a multi-part message in MIME format.
> --------------163AA378AEFE8DA42BE4E1B8
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> Hi,
> the new 19990214 snapshot has an optimization bug which was not present in
> the
> previous 19990208 snapshot. I attach a source file suitable for inclusion
> in the test suite (I also attach a .ii file).
>
> Here's a session log
> nathan@manao:545>ss-g++ -v
> Reading specs from /local/nathan/ss/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2
> .93.08/specs
> gcc version egcs-2.93.08 19990214 (gcc2 ss-980929 experimental)
> nathan@manao:546>uname -a
> SunOS manao 5.6 Generic_105181-03 sun4u sparc
> nathan@manao:547>ss-g++ -O1 inline.ii
> nathan@manao:548>a.out
> A number 1, a string 'PASS'
> PASS
> nathan@manao:549>ss-g++ -O2 inline.ii
> nathan@manao:550>a.out
> A number 1, a string 'FAIL 1'
> FAIL
[ ... ]
I just tested this with the gcc-2.95 prerelease sources and it seems to
be working fine now.
jeff
More information about the Gcc-bugs
mailing list