From e9ed6b1e27a1845351b0f4ed019266c3a202da5e Mon Sep 17 00:00:00 2001 From: Ilya Enkovich Date: Thu, 22 Jan 2015 13:45:13 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/chkp-always_inline.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.30.2