https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103698
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |MOVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Not a GCC bug. GCC is producing the correct output as requested: .section .data,"ax",%progbits .align 1 .p2align 2,,3 .global flash_Erase_sector1 .syntax unified .thumb .thumb_func .type flash_Erase_sector1, %function flash_Erase_sector1: .LVL0: .LFB0: .loc 1 1 75 view -0 .cfi_startproc @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. .loc 1 1 76 view .LVU1 .LVL1: .loc 1 1 76 is_stmt 0 view .LVU2 bx lr This might not even be a binutils bug either but GCC is not doing anything special with respect to what the user requested.