https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119279
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- I think asm ("" : : "g" (__builtin_frame_address_(0))) and using that input as frame pointer looks spot-on semantically, is that what you are actually using or are you then using %rbp anyway in the assembler text? We should make sure to not elide the frame if there's such a use then and possibly document this as the way to get a frame and at the frame pointer in inline asm context.