diff options
author | Andrew Pinski <apinski@marvell.com> | 2021-08-31 05:36:47 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2021-08-31 06:28:27 +0000 |
commit | aba800615e1af875b75f7774de67778c1b3315ad (patch) | |
tree | 16ceddc5f317b4551ff0792ed3d7f718fab4dea6 /gcc/fortran/trans-openmp.c | |
parent | 2dc6782a06eeffd9dc6b84fe93b8fcd2ce4960c7 (diff) | |
download | gcc-aba800615e1af875b75f7774de67778c1b3315ad.zip gcc-aba800615e1af875b75f7774de67778c1b3315ad.tar.gz gcc-aba800615e1af875b75f7774de67778c1b3315ad.tar.bz2 |
Fix gcc.dg/ipa/inline-8.c for -fPIC
The problem here is with -fPIC, both cmp and move
don't bind locally so they are not even tried to be
inlined. This fixes the issue by marking both
functions as static and now the testcase passes
for both -fPIC and -fno-PIC cases.
OK? Tested on x86_64-linux-gnu.
gcc/testsuite/ChangeLog:
* gcc.dg/ipa/inline-8.c: Mark cmp and move as
static so they both bind local and available for
inlinine.
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
0 files changed, 0 insertions, 0 deletions