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]

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


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?


-- 
H.J.


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