This is the mail archive of the gcc-patches@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]

Re: Turn on -fomit-frame-pointer by default for 32bit x86?


"H.J. Lu" <hjl.tools@gmail.com> writes:

> [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?

I think it's a good idea, but in general one side effect one should
be aware of is that it breaks many profilers with calltrace per sample
support. Those tend to not be able to read unwind tables.


-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.


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