+2006-04-09 Richard Sandiford <richard@codesourcery.com>
+
+ PR rtl-optimization/27073
+ * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
+ not REG_EQUIVs.
+
2006-04-08 Daniel Berlin <dberlin@dberlin.org>
* tree.h (tree_memory_tag): Add old_used_alone.
static int
try_replace_reg (rtx from, rtx to, rtx insn)
{
- rtx note = find_reg_equal_equiv_note (insn);
+ rtx note = find_reg_note (insn, REG_EQUAL, NULL);
rtx src = 0;
int success = 0;
rtx set = single_set (insn);
+2006-04-09 Richard Sandiford <richard@codesourcery.com>
+
+ PR rtl-optimization/27073
+ * gcc.c-torture/execute/pr27073.c: New test.
+
2006-04-08 Mike Stump <mrs@apple.com>
* gcc.dg/pragma-darwin.c: Improve for ppc64.
--- /dev/null
+void __attribute__((noinline))
+foo (int *p, int d1, int d2, int d3,
+ short count, int s1, int s2, int s3, int s4, int s5)
+{
+ int n = count;
+ while (n--)
+ {
+ *p++ = s1;
+ *p++ = s2;
+ *p++ = s3;
+ *p++ = s4;
+ *p++ = s5;
+ }
+}
+
+int main()
+{
+ int x[10], i;
+
+ foo (x, 0, 0, 0, 2, 100, 200, 300, 400, 500);
+ for (i = 0; i < 10; i++)
+ if (x[i] != (i % 5 + 1) * 100)
+ abort ();
+ exit (0);
+}