https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99282
--- Comment #2 from Fangrui Song <i at maskray dot me> --- (In reply to Jakub Jelinek from comment #1) > There is the __GCC_HAVE_DWARF2_CFI_ASM predefined macro that tells if .cfi* > directives are used or not. And, inline asm that wishes to be usable in > both can use that. Thanks. I did not know this macro. So the user writing inline asm does have a way to know whether .cfi_* should be inserted. If you think emitting `.cfi_sections` is unnecessary, I am fine and happy that this is closed. (GCC already generates `.cfi_sections .debug_frame\n`, so perhaps supporting `.cfi_sections\n` is not that costly? :) Users will newer toolchain can be a bit happier - they don't need to do `#ifdef __GCC_HAVE_DWARF2_CFI_ASM`).