From 4b498f721ef25cb4cd43b4349271987cb25ae357 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 30 Nov 2016 14:02:48 +0100 Subject: [PATCH] emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of reset_used_flags. * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of reset_used_flags. From-SVN: r243019 --- gcc/ChangeLog | 3 +++ gcc/emit-rtl.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6c853e90b83..ac65b1cf80d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2016-11-30 Jakub Jelinek + * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of + reset_used_flags. + * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid sharing the SUBREG rtx between move and following insn. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 04ce2d1398b..02512d3857a 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2826,10 +2826,10 @@ static void verify_insn_sharing (rtx insn) { gcc_assert (INSN_P (insn)); - reset_used_flags (PATTERN (insn)); - reset_used_flags (REG_NOTES (insn)); + verify_rtx_sharing (PATTERN (insn), insn); + verify_rtx_sharing (REG_NOTES (insn), insn); if (CALL_P (insn)) - reset_used_flags (CALL_INSN_FUNCTION_USAGE (insn)); + verify_rtx_sharing (CALL_INSN_FUNCTION_USAGE (insn), insn); } /* Go through all the RTL insn bodies and check that there is no unexpected -- 2.30.2