diff options
author | Ilya Enkovich <ilya.enkovich@intel.com> | 2015-01-22 13:45:13 +0000 |
---|---|---|
committer | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2015-01-22 13:45:13 +0000 |
commit | e9ed6b1e27a1845351b0f4ed019266c3a202da5e (patch) | |
tree | cc2e08d9bb6e3cea6acb8b2f8eba474b78750223 | |
parent | 6c4ffa6c4a5ff7a46e1bd4b628d29828a77e1704 (diff) | |
download | gcc-e9ed6b1e27a1845351b0f4ed019266c3a202da5e.zip gcc-e9ed6b1e27a1845351b0f4ed019266c3a202da5e.tar.gz gcc-e9ed6b1e27a1845351b0f4ed019266c3a202da5e.tar.bz2 |
chkp-always_inline.c (f1): Make static to avoid errors with -fpic.
gcc/testsuite/
* gcc.target/i386/chkp-always_inline.c (f1): Make static
to avoid errors with -fpic.
From-SVN: r219997
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/chkp-always_inline.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8246787..78b7a83 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.target/i386/chkp-always_inline.c b/gcc/testsuite/gcc.target/i386/chkp-always_inline.c index 16d2358..26e80fe 100644 --- a/gcc/testsuite/gcc.target/i386/chkp-always_inline.c +++ b/gcc/testsuite/gcc.target/i386/chkp-always_inline.c @@ -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; } |