This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization/8872: Constant propagation and conditional statements


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]