(subst_stack_regs_pat): Set src_note explicitly, instead
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 30 Dec 1996 19:55:54 +0000 (11:55 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 30 Dec 1996 19:55:54 +0000 (11:55 -0800)
of using invalid aggregate initialization.

From-SVN: r13345

gcc/reg-stack.c

index ea72b3a..8551e65 100644 (file)
@@ -2363,9 +2363,13 @@ subst_stack_regs_pat (insn, regstack, pat)
        src2_note = find_regno_note (insn, REG_DEAD, REGNO (*src2));
 
        {
-         rtx src_note [] = {0, src1_note, src2_note};
+         rtx src_note [3];
          int i;
 
+         src_note[0] = 0;
+         src_note[1] = src1_note;
+         src_note[2] = src2_note;
+
          if (STACK_REG_P (*src1))
            replace_reg (src1, get_hard_regnum (regstack, *src1));
          if (STACK_REG_P (*src2))