From: Uros Bizjak Date: Mon, 10 Apr 2017 18:58:34 +0000 (+0200) Subject: unroll-7.c: Declare "a" as a pointer to external array. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f634dd47d6c43f4d0a166c4f4c66069ec621d37b;p=gcc.git unroll-7.c: Declare "a" as a pointer to external array. * gcc.dg/unroll-7.c: Declare "a" as a pointer to external array. From-SVN: r246817 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 91b232d566f..15fad9a11ca 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-04-10 Uros Bizjak + + * gcc.dg/unroll-7.c: Declare "a" as a pointer to external array. + 2017-04-10 Uros Bizjak PR testsuite/79356 diff --git a/gcc/testsuite/gcc.dg/unroll-7.c b/gcc/testsuite/gcc.dg/unroll-7.c index 70b92ba080f..e76d4faf16c 100644 --- a/gcc/testsuite/gcc.dg/unroll-7.c +++ b/gcc/testsuite/gcc.dg/unroll-7.c @@ -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++)