From: Bernd Edlinger Date: Mon, 7 Dec 2015 16:23:49 +0000 (+0000) Subject: ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for basic asm. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a20b66911f89a43fdc814f46189ca488ca908d38;p=gcc.git ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for basic asm. 2015-12-07 Bernd Edlinger * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for basic asm. From-SVN: r231369 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b9211992ff..a72a4d5c887 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-12-07 Bernd Edlinger + + * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for + basic asm. + 2015-12-07 Nathan Sidwell * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no diff --git a/gcc/ipa-icf-gimple.c b/gcc/ipa-icf-gimple.c index 992ee7acb4c..4312e79ba88 100644 --- a/gcc/ipa-icf-gimple.c +++ b/gcc/ipa-icf-gimple.c @@ -981,6 +981,9 @@ func_checker::compare_gimple_asm (const gasm *g1, const gasm *g2) if (gimple_asm_volatile_p (g1) != gimple_asm_volatile_p (g2)) return false; + if (gimple_asm_input_p (g1) != gimple_asm_input_p (g2)) + return false; + if (gimple_asm_ninputs (g1) != gimple_asm_ninputs (g2)) return false;