From 2f021b673a02a6648a45215ca0472d8ba6cd393b Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Wed, 15 Sep 2004 21:45:28 +0000 Subject: [PATCH] re PR rtl-optimization/17427 (powerpc-linux does not bootstrap on HEAD with --disable-checking) 2004-09-15 Andrew Pinski PR rtl-opt/17427 * gcse.c (process_insert_insn): insn_invalid_p has side effects. Move it out of gcc_assert. From-SVN: r87565 --- gcc/ChangeLog | 6 ++++++ gcc/gcse.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf5b444dadb..b87ba75660c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-09-15 Andrew Pinski + + PR rtl-opt/17427 + * gcse.c (process_insert_insn): insn_invalid_p has side effects. + Move it out of gcc_assert. + 2004-09-15 Joseph S. Myers * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c, diff --git a/gcc/gcse.c b/gcc/gcse.c index 3e0ede4cfa1..32d4d44562d 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -4006,7 +4006,8 @@ process_insert_insn (struct expr *expr) { rtx insn = emit_insn (gen_rtx_SET (VOIDmode, reg, exp)); - gcc_assert (!insn_invalid_p (insn)); + if (insn_invalid_p (insn)) + gcc_unreachable (); } -- 2.30.2