]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64 testsuite] Make vect-abs.c C99 compliant
authorJames Greenhalgh <james.greenhalgh@arm.com>
Mon, 24 Mar 2014 11:47:33 +0000 (11:47 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Mon, 24 Mar 2014 11:47:33 +0000 (11:47 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/vect-abs.c

index 0d3500a4ccf45f5388017d1a46085fc945474ab3..99801b51438b524dcc9c2b7e517f665328ba7e59 100644 (file)
@@ -1,3 +1,11 @@
+2014-03-24  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       * 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  <polacek@redhat.com>
 
        * c-c++-common/ubsan/div-by-zero-4.c: Don't include limits.h.  Define
index 954b10615a3a0588a1373346c6a6bac37c099283..9e0ed99ca6a0e09bc9d96b04d3b46258e98dd49c 100644 (file)
@@ -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;