public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/8935: Failure to apply trivial peephole optimizations
@ 2002-12-20 20:51 bangerth
0 siblings, 0 replies; only message in thread
From: bangerth @ 2002-12-20 20:51 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, martin, nobody
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-21 4:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-20 20:51 optimization/8935: Failure to apply trivial peephole optimizations bangerth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).