asb added a comment.
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
cfe-commits mailing list