On 5/18/20 5:56 PM, Florian Weimer via Gcc-patches wrote:
* Michael Matz:
So does -fcf-protection. -fno-omit-frame-pointer does not work for me at
all for some reason, the frame pointer is always missing?
Not for me:
I see. I didn't know that -fno-omit-frame-pointer only applies to
non-leaf functions. For them, the behavior I see matches yours.
Thanks,
Florian
I bet it's related to this issue
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92860#c4.
The issue is about update of target options from optimization option and
there's proper
restore to the original state.
Martin