]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.dg/guality/restrict.c: Add `used' attribute to all variables.
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 2014 12:32:50 +0000 (12:32 +0000)
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 2014 12:32:50 +0000 (12:32 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214219 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/restrict.c

index 16d0c07b247eea583a3147dc4f7e4c5aa3096d26..2e023a88fbbb6b352ae59b072d1197b8eec49e6e 100644 (file)
@@ -1,3 +1,7 @@
+2014-08-20  Mark Wielaard  <mjw@redhat.com>
+
+       * gcc.dg/guality/restrict.c: Add `used' attribute to all variables.
+
 2014-08-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * lib/gcc-defs.exp (${tool}_check_unsupported_p):
index e31224bbc2a6860fb576883a8ff7dce1d6d4d2d1..62d78324004cef42271e19105e42efaea84411c4 100644 (file)
@@ -2,16 +2,16 @@
 /* { dg-do run } */
 /* { dg-options "-std=c99 -gdwarf-3" } */
 
-int *ip;
-const int *cip;
-int * restrict irp;
-int * const icp;
-const int * restrict cirp;
-int * const restrict icrp;
-const int * const restrict cicrp;
-
-int * const volatile restrict cvirp;
-const volatile int * restrict pcvir;
+int *ip __attribute__((used));
+const int *cip __attribute__((used));
+int * restrict irp __attribute__((used));
+int * const icp __attribute__((used));
+const int * restrict cirp __attribute__((used));
+int * const restrict icrp __attribute__((used));
+const int * const restrict cicrp __attribute__((used));
+
+int * const volatile restrict cvirp __attribute__((used));
+const volatile int * restrict pcvir __attribute__((used));
 
 static __attribute__((noclone, noinline)) void *
 cpy (void * restrict s1, const void * restrict s2, unsigned int n)