chkp-always_inline.c (f1): Make static to avoid errors with -fpic.
authorIlya Enkovich <ilya.enkovich@intel.com>
Thu, 22 Jan 2015 13:45:13 +0000 (13:45 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Thu, 22 Jan 2015 13:45:13 +0000 (13:45 +0000)
gcc/testsuite/

* gcc.target/i386/chkp-always_inline.c (f1): Make static
to avoid errors with -fpic.

From-SVN: r219997

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/chkp-always_inline.c

index 8246787f8aa974df525d1ddc886b6058192e7e30..78b7a83969742279f12673f79d75e23b116b1bac 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-22  Ilya Enkovich  <ilya.enkovich@intel.com>
+
+       * gcc.target/i386/chkp-always_inline.c (f1): Make static
+       to avoid errors with -fpic.
+
 2015-01-22  Richard Biener  <rguenther@suse.de>
 
        PR libstdc++/64535
index 16d23582ddeeb75c72262379e66fb9e46abcf7c6..26e80fe1975c9d7f1968bec5ac624cfa5b0ab166 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-require-effective-target mpx } */
 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -Wno-attributes" } */
 
-__attribute__((always_inline)) int f1 (int *p)
+static __attribute__((always_inline)) int f1 (int *p)
 {
   return *p;
 }