From a20b66911f89a43fdc814f46189ca488ca908d38 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Mon, 7 Dec 2015 16:23:49 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/ipa-icf-gimple.c | 3 +++ 2 files changed, 8 insertions(+) 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; -- 2.30.2