This is the mail archive of the gcc@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: frame pointer elimination


>> I'm porting a private backend from an old 4.6 branch to the 6.1.0
>> release, and I have some troubles eliminating my frame pointer without
>> -fomit-frame-pointer option.
>> Elimination is correctly done with -fomit-frame-pointer.
> If the target's default is -fno-omit-frame-pointer, then it's as expected.
Ok, thanks for your reply. The 4.6 backend was testing if the hardware
FP was live, and did some optimization whatever -fomit-frame-pointer or
-fno-omit-frame-pointer. So it was not a valid optimization?

With the 6.1 branch, the hardware frame pointer is always live when
no-omit-frame-pointer, preventing such an optimization when the hardware
fp is not used...

Thanks,
Aurélien


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