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
This commit is contained in:
Ilya Enkovich 2015-01-22 13:45:13 +00:00 committed by Ilya Enkovich
parent 6c4ffa6c4a
commit e9ed6b1e27
2 changed files with 6 additions and 1 deletions

View 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

View 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;
}