From: Ilya Enkovich Date: Thu, 22 Jan 2015 13:45:13 +0000 (+0000) Subject: chkp-always_inline.c (f1): Make static to avoid errors with -fpic. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9ed6b1e27a1845351b0f4ed019266c3a202da5e;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8246787f8aa..78b7a839697 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-01-22 Ilya Enkovich + + * gcc.target/i386/chkp-always_inline.c (f1): Make static + to avoid errors with -fpic. + 2015-01-22 Richard Biener 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 16d23582dde..26e80fe1975 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; }