From 9c78ecc2e6afe8ae7f6335ea8e17fb71535a3284 Mon Sep 17 00:00:00 2001 From: Pat Haugen Date: Fri, 27 Feb 2015 18:42:07 +0000 Subject: [PATCH] pr59354.c: Move vector producing code to separate function. * gcc.dg/vect/pr59354.c: Move vector producing code to separate function. From-SVN: r221066 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/vect/pr59354.c | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7f161c46328..27b6a4ac218 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-02-27 Pat Haugen + + * gcc.dg/vect/pr59354.c: Move vector producing code to separate function. + 2015-02-27 Jan Hubicka PR ipa/65237 diff --git a/gcc/testsuite/gcc.dg/vect/pr59354.c b/gcc/testsuite/gcc.dg/vect/pr59354.c index 37fca9d25a4..309ad3c73f6 100644 --- a/gcc/testsuite/gcc.dg/vect/pr59354.c +++ b/gcc/testsuite/gcc.dg/vect/pr59354.c @@ -8,12 +8,11 @@ void abort (void); unsigned int a[256]; unsigned char b[256]; -int main() +__attribute__ ((noinline)) void +main1() { int i, z, x, y; - check_vect (); - for(i = 0; i < 256; i++) { a[i] = i % 5; @@ -27,6 +26,13 @@ int main() if (b[4] != 1) abort (); +} + +int main (void) +{ + check_vect (); + + main1 (); return 0; } -- 2.30.2