https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102534

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|RFE epilog is not reliably  |RFE epilog is not reliably
                   |a statement with            |a statement with inlining
                   |optimization                |

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-Og -g2 GCC produces:

        .loc 1 5 4 is_stmt 0 view .LVU3
        movl    $0, %eax
        call    printf
.LVL2:
        .loc 1 6 1 view .LVU4
        addq    $8, %rsp
        .cfi_def_cfa_offset 8
        ret
        .cfi_endproc

Which looks good too.

So this must be an issue with inlining.

Reply via email to