https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122010
--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
With GCC 13, I get:
$ gcc-13 a.c -o - -S -O2
.file "a.c"
.text
.p2align 4
.globl test
.type test, @function
test:
.LFB0:
.cfi_startproc
ret
.cfi_endproc
.LFE0:
.size test, .-test
.ident "GCC: (Gentoo Hardened 13.4.1_p20250918 p9) 13.4.1 20250918"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xb0008000
.long 3f - 2f
2:
.long 0x1
3:
.align 8
4:
Everything else is fine. (Just use -fno-asynchronous-unwind-tables to get rid
of CFI crap)