final.c (shorten_branches): Fix check for basic asm.
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 7 Dec 2015 16:27:59 +0000 (16:27 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Mon, 7 Dec 2015 16:27:59 +0000 (16:27 +0000)
2015-12-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * final.c (shorten_branches): Fix check for basic asm.

From-SVN: r231371

gcc/ChangeLog
gcc/final.c

index a72a4d5c8870623c4202a16fdc8ade19ffa4dda9..e547c6294a2b5a803f08b2cbe8245802aa84d249 100644 (file)
@@ -1,5 +1,7 @@
 2015-12-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
+       * final.c (shorten_branches): Fix check for basic asm.
+
        * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
        basic asm.
 
index 8cb55332e3d3ad2f8d56477b26f3dceb0c5ddce7..1edc446e3f136c592d75e9d3042eb4e71d184f6f 100644 (file)
@@ -1157,7 +1157,7 @@ shorten_branches (rtx_insn *first)
              int inner_uid = INSN_UID (inner_insn);
              int inner_length;
 
-             if (GET_CODE (body) == ASM_INPUT
+             if (GET_CODE (PATTERN (inner_insn)) == ASM_INPUT
                  || asm_noperands (PATTERN (inner_insn)) >= 0)
                inner_length = (asm_insn_count (PATTERN (inner_insn))
                                * insn_default_length (inner_insn));