[Bug rtl-optimization/42511] [4.5 Regression] bootstrap error in stage3 on alpha-linux-gnu
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 6 23:16:00 GMT 2010
------- Comment #18 from ubizjak at gmail dot com 2010-01-06 23:16 -------
Following patch changes the fix from PR21767 to remove REG_EQUAL notes from all
moved instructions, not only from ones that have non-function-invariant
sources.
--cut here--
Index: ifcvt.c
===================================================================
--- ifcvt.c (revision 155681)
+++ ifcvt.c (working copy)
@@ -4079,15 +4079,12 @@ dead_or_predicable (basic_block test_bb,
insn = head;
do
{
- rtx note, set;
+ rtx note;
if (! INSN_P (insn))
continue;
note = find_reg_note (insn, REG_EQUAL, NULL_RTX);
- if (! note)
- continue;
- set = single_set (insn);
- if (!set || !function_invariant_p (SET_SRC (set)))
+ if (note)
remove_note (insn, note);
} while (insn != end && (insn = NEXT_INSN (insn)));
--cut here--
Matthias, can you please test this patch if it fixes bootstrap for you?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42511
More information about the Gcc-bugs
mailing list