From: Daniel Cederman Date: Tue, 5 Dec 2023 14:26:27 +0000 (+0100) Subject: sparc: Treat instructions with length 0 as empty X-Git-Tag: basepoints/gcc-15~2861 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c528c16398b865f111143c947290f0a685a76d9e;p=thirdparty%2Fgcc.git sparc: Treat instructions with length 0 as empty This is to handle the membar_empty instruction that can be generated when compiling for UT699. gcc/ChangeLog: * config/sparc/sparc.cc (next_active_non_empty_insn): Length 0 treated as empty --- diff --git a/gcc/config/sparc/sparc.cc b/gcc/config/sparc/sparc.cc index 62c57cc53159..30fa4474bbd0 100644 --- a/gcc/config/sparc/sparc.cc +++ b/gcc/config/sparc/sparc.cc @@ -1119,6 +1119,7 @@ next_active_non_empty_insn (rtx_insn *insn) while (insn && (GET_CODE (PATTERN (insn)) == UNSPEC_VOLATILE || GET_CODE (PATTERN (insn)) == ASM_INPUT + || get_attr_length (insn) == 0 || (USEFUL_INSN_P (insn) && (asm_noperands (PATTERN (insn)) >= 0) && !strcmp (decode_asm_operands (PATTERN (insn),