From: Bernd Edlinger Date: Mon, 7 Dec 2015 16:27:59 +0000 (+0000) Subject: final.c (shorten_branches): Fix check for basic asm. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5dd2902aa1bf772c53951ae9998645d4b89d50ae;p=gcc.git final.c (shorten_branches): Fix check for basic asm. 2015-12-07 Bernd Edlinger * final.c (shorten_branches): Fix check for basic asm. From-SVN: r231371 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a72a4d5c887..e547c6294a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2015-12-07 Bernd Edlinger + * final.c (shorten_branches): Fix check for basic asm. + * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for basic asm. diff --git a/gcc/final.c b/gcc/final.c index 8cb55332e3d..1edc446e3f1 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -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));