The logic was broken for Linux triples as it returns true in the switch for Triple.isOSLinux().
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
@asb Should we keep frame pointer enabled for debug builds? Internally, for ARM/Thumb we leave frame pointer ON if debug is enabled.
Comment Actions
Could you please add a test, perhaps to test/Driver/frame-pointer.c?
My understanding is that in general there is a desire for codegen to remain the same or as close as possible whether it's a -g build or not, so I think disabling fp elimination for debug builds wouldn't be the right route. Or did I misunderstand you?