Testcase for optimizer bug i686-pc-linux-gnulibc1

Karl Günter Wünsch Karl.Guenter.Wuensch@neuss.netsurf.de
Tue Apr 28 02:31:00 GMT 1998


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.

	regards
	Karl Günter Wünsch
tt.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tt.c
Type: text/x-c
Size: 550 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19980428/14bfb314/attachment.bin>


More information about the Gcc-bugs mailing list