This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/8872: Constant propagation and conditional statements
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, s dot chauveau at chello dot nl
- Date: 8 Dec 2002 21:40:21 -0000
- Subject: Re: optimization/8872: Constant propagation and conditional statements
- Reply-to: reichelt at igpm dot rwth-aachen dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, s dot chauveau at chello dot nl, gcc-gnats at gcc dot gnu dot org
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