Turn on -fomit-frame-pointer by default for 32bit x86?
Richard Guenther
richard.guenther@gmail.com
Tue Jul 13 20:40:00 GMT 2010
On Tue, Jul 13, 2010 at 8:15 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> Hi,
>
> I checked the default code for 32bit. We currently generate
>
> [hjl@gnu-6 tmp]$ cat x.c
> void
> foo ()
> {
> }
> [hjl@gnu-6 tmp]$ /usr/gcc-4.5/bin/gcc -m32 -S x.c -O3
> [hjl@gnu-6 tmp]$ cat x.s
> .file "x.c"
> .text
> .globl foo
> .type foo, @function
> foo:
> pushl %ebp
> movl %esp, %ebp
> popl %ebp
> ret
>
> Can we turn on -fomit-frame-pointer by default for 32bit?
No, we don't have unwind information by default for 32bit.
Richard.
>
> --
> H.J.
>
More information about the Gcc-patches
mailing list