From: James Greenhalgh Date: Mon, 24 Mar 2014 11:47:33 +0000 (+0000) Subject: [AArch64 testsuite] Make vect-abs.c C99 compliant X-Git-Tag: releases/gcc-4.9.0~332 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71cfb0cfda085ce661aa9108d8d828e8d95a1b84;p=thirdparty%2Fgcc.git [AArch64 testsuite] Make vect-abs.c C99 compliant * gcc.target/aarch64/vect-abs.c (dg-options): Add -std=c99. (LONG_LONG): Use LLONG. (set_rvector_long): Explicitly return void. (set_vector_long): Likewise. (check_vector_long): Likewise. From-SVN: r208788 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0d3500a4ccf4..99801b51438b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2014-03-24 James Greenhalgh + + * gcc.target/aarch64/vect-abs.c (dg-options): Add -std=c99. + (LONG_LONG): Use LLONG. + (set_rvector_long): Explicitly return void. + (set_vector_long): Likewise. + (check_vector_long): Likewise. + 2014-03-24 Marek Polacek * c-c++-common/ubsan/div-by-zero-4.c: Don't include limits.h. Define diff --git a/gcc/testsuite/gcc.target/aarch64/vect-abs.c b/gcc/testsuite/gcc.target/aarch64/vect-abs.c index 954b10615a3a..9e0ed99ca6a0 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-abs.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-abs.c @@ -1,6 +1,6 @@ /* { dg-do run } */ -/* { dg-options "-O3" } */ +/* { dg-options "-O3 -std=c99" } */ #include "limits.h" @@ -37,8 +37,9 @@ extern void abort (void); SET_RVEC (8, SCHAR) SET_RVEC (16, SHRT) SET_RVEC (32, INT) -SET_RVEC (64, LONG_LONG) +SET_RVEC (64, LLONG) +void set_rvector_long (pRLONG a) { int i; @@ -49,8 +50,9 @@ set_rvector_long (pRLONG a) SET_VEC (8, SCHAR) SET_VEC (16, SHRT) SET_VEC (32, INT) -SET_VEC (64, LONG_LONG) +SET_VEC (64, LLONG) +void set_vector_long (long *__restrict__ a) { long i; @@ -63,6 +65,7 @@ CHECK_VEC (16) CHECK_VEC (32) CHECK_VEC (64) +void check_vector_long (long *__restrict__ a, long *__restrict__ b) { long i;