]> git.ipfire.org Git - thirdparty/gcc.git/commit
final: Fix get_attr_length for asm goto [PR118411]
authorAndrew Pinski <quic_apinski@quicinc.com>
Sat, 11 Jan 2025 04:04:09 +0000 (20:04 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Sun, 12 Jan 2025 02:47:37 +0000 (18:47 -0800)
commitc1729df6ec1eff4815a9cdd71392691ce21da028
tree7a427bd9b7bfacda41afae6f4495aec16352f4c5
parent550f1a4e539943fc2dd6e5b17e898ffec156367d
final: Fix get_attr_length for asm goto [PR118411]

The problem is for inline-asm goto, the outer rtl insn type
is a jump_insn and get_attr_length does not handle ASM specially
unlike if the outer rtl insn type was just insn.

This fixes the issue by adding support for both CALL_INSN and JUMP_INSN
with asm.

OK? Bootstrapped and tested on x86_64-linux-gnu.

PR middle-end/118411

gcc/ChangeLog:

* final.cc (get_attr_length_1): Handle asm for CALL_INSN
and JUMP_INSNs.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/final.cc