unroll-7.c: Declare "a" as a pointer to external array.
authorUros Bizjak <ubizjak@gmail.com>
Mon, 10 Apr 2017 18:58:34 +0000 (20:58 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 10 Apr 2017 18:58:34 +0000 (20:58 +0200)
* gcc.dg/unroll-7.c: Declare "a" as a pointer to external array.

From-SVN: r246817

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/unroll-7.c

index 91b232d566fa44617c7486d21b0d31e2a59fe4a3..15fad9a11ca2ba19152e3bdfda3247714973c54f 100644 (file)
@@ -1,3 +1,7 @@
+2017-04-10  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.dg/unroll-7.c: Declare "a" as a pointer to external array.
+
 2017-04-10  Uros Bizjak  <ubizjak@gmail.com>
 
        PR testsuite/79356
index 70b92ba080fff92919effc73e972fe75778b0ccd..e76d4faf16c24465a40c3c39b29f10b217129798 100644 (file)
@@ -2,7 +2,9 @@
 /* { dg-options "-O2 -fdump-rtl-loop2_unroll -funroll-loops" } */
 /* { dg-require-effective-target int32plus } */
 
-int t(int *a)
+extern int *a;
+
+int t(void)
 {
   int i;
   for (i=0;i<1000000;i++)