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]

[Bug rtl-optimization/38854] missed optimization with -m32: empty functions shouldn't contain push/mov/pop



------- Comment #2 from edwintorok at gmail dot com  2009-01-15 09:50 -------
(In reply to comment #1)
> This is the frame-pointer setup code.  You can get the same code as x86_64 with
> -momit-leaf-frame-pointer.
> 

Ok. But can't the optimizers see that you push ebp, write something to it, and
then pop to it again, and remove that code automatically?
At least the movl is a dead store ...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38854


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