optimization/8872: Constant propagation and conditional statements
reichelt@igpm.rwth-aachen.de
reichelt@igpm.rwth-aachen.de
Sun Dec 8 13:40:00 GMT 2002
Synopsis: Constant propagation and conditional statements
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Sun Dec 8 13:40:21 2002
State-Changed-Why:
Fixed in mainline.
With gcc 3.3-20021118 I get the following assembler output,
when optimizing with -O2:
foo:
pushl %ebp
movl $1, %eax
movl %esp, %ebp
popl %ebp
ret
That's what you expected, right?
Since the bad optimization in gcc 3.2.1 is no regression,
the fix will most likely not be backported for gcc 3.2.2.
But thanks for spotting this problem.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8872
More information about the Gcc-bugs
mailing list