optimization/8613: -O3 optimisation of ++ generates wrong code

Mark O'Donohue mark.odonohue@cytopia.com.au
Sun Nov 17 18:34:00 GMT 2002


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8613


confirmed on redhat 8.0


Also it seem tied up with i686 architecture.

Since on redhat 8.0 gcc 3.2:

g++ -O2 test1.cpp

works:

and on mandrak9.0 gcc 3.2

g++ -O2 -march=i386 test1.cpp

also works.


Mark



More information about the Gcc-bugs mailing list