------- Comment #3 from edwintorok at gmail dot com 2009-01-15 09:51 ------- (In reply to comment #2) > (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 ... >
Or is the prologue/epilogue code special, and not run through such optimizations? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38854