This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/38854] missed optimization with -m32: empty functions shouldn't contain push/mov/pop
- From: "edwintorok at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2009 09:50:37 -0000
- Subject: [Bug rtl-optimization/38854] missed optimization with -m32: empty functions shouldn't contain push/mov/pop
- References: <bug-38854-15165@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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