From f634dd47d6c43f4d0a166c4f4c66069ec621d37b Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Mon, 10 Apr 2017 20:58:34 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/unroll-7.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) 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++) -- 2.30.2