Avoid GNU C extension
authorcrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Nov 1999 11:44:37 +0000 (11:44 +0000)
committercrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Nov 1999 11:44:37 +0000 (11:44 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30671 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/loop.c

index af284aa..7b12c26 100644 (file)
@@ -1,3 +1,7 @@
+1999-11-26  Bernd Schmidt  <bernds@cygnus.co.uk>
+
+       * loop.c (try_copy_prop): Avoid GNU C extension.
+
 1999-11-25  Mark Mitchell  <mark@codesourcery.com>
 
        * except.c (init_eh_for_function): But still zero
index a1a3803..88cf77a 100644 (file)
@@ -9961,7 +9961,12 @@ try_copy_prop (scan_start, loop_top, end, replacement, regno)
        insn = next_insn_in_loop (insn, scan_start, end, loop_top))
     {
       rtx set;
-      rtx array[3] = { regno_reg_rtx[regno], replacement, insn };
+      rtx array[3];
+
+      array[0] = regno_reg_rtx[regno];
+      array[1] = replacement;
+      array[2] = insn;
+
       if (GET_RTX_CLASS (GET_CODE (insn)) != 'i')
        continue;
       set = single_set (insn);