This is the mail archive of the gcc-prs@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/8935: Failure to apply trivial peephole optimizations


Synopsis: Failure to apply trivial peephole optimizations

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Fri Dec 20 20:51:01 2002
State-Changed-Why:
    Confirmed. With present CVS I get with -O3 -fomit-frame-pointer:
    ----------------
    	subl	$44, %esp
    	xorl	%eax, %eax
    	addl	$44, %esp
    	ret
    ------------------
    which is also not much more clever than what we get without
    -fomit-frame-pointer with present CVS (first foo(), then
    bar()):
    ---------------------
    	pushl	%ebp
    	xorl	%eax, %eax
    	movl	%esp, %ebp
    	popl	%ebp
    	ret
    
    	pushl	%ebp
    	xorl	%eax, %eax
    	movl	%esp, %ebp
    	subl	$40, %esp
    	leave
    	ret
    -----------------------
    
    W.

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


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