This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Testcase for optimizer bug i686-pc-linux-gnulibc1
- To: "Karl G nter W nsch" <Karl dot Guenter dot Wuensch at neuss dot netsurf dot de>
- Subject: Re: Testcase for optimizer bug i686-pc-linux-gnulibc1
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 06 May 1998 21:19:46 -0600
- cc: "egcs-bugs at cygnus dot com" <egcs-bugs at cygnus dot com>
- Reply-To: law at cygnus dot com
In message <3545A1BB.366306A6@neuss.netsurf.de>you write:
> Hello again,
>
> I have created a minimalistic source piece that compiles and shows the
> error I reported yesterday in the optimizer of egcs-980425, (it has been
> there before, but I can not tell when it appeared, but I checked it
> against egcs-980321 and it is there too).Maybe this helps.
>
> What happens is that compiled with gcc versions 2.7.3 or 2.8.1 I can use
> optimization on this short piece of code and it works as expected. With
> egcs I can not use
> optimization (without -O the generated code seems to be ok). With -O the
> ++m part of the call seems to be evaluated incorrectly because whatever
> happens the result is one too high.
Thanks. Jim fixed this bug last week.
I simplified and standardized your test and added it to the testsuite.
Thanks!
jeff