[gcc(refs/users/aoliva/heads/testme)] testsuite: x86: pr115397.c, pr118497 need fpic support
Alexandre Oliva
aoliva@gcc.gnu.org
Sat Mar 28 16:25:36 GMT 2026
https://gcc.gnu.org/g:64c942f8578b77913ff3ddce2e83ab6caee2027a
commit 64c942f8578b77913ff3ddce2e83ab6caee2027a
Author: Alexandre Oliva <oliva@adacore.com>
Date: Sat Mar 28 12:58:46 2026 -0300
testsuite: x86: pr115397.c, pr118497 need fpic support
Here are fixes for two x86-specific testcase that uses PIC
compile-time options without requiring fpic.
for gcc/testsuite/ChangeLog
* gcc.target/i386/pr115397.c: Require fpic.
* gcc.target/i386/pr118497.c: Likewise.
Diff:
---
gcc/testsuite/gcc.target/i386/pr115397.c | 1 +
gcc/testsuite/gcc.target/i386/pr118497.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/gcc/testsuite/gcc.target/i386/pr115397.c b/gcc/testsuite/gcc.target/i386/pr115397.c
index 27835782b78d..26c6a2d4f4be 100644
--- a/gcc/testsuite/gcc.target/i386/pr115397.c
+++ b/gcc/testsuite/gcc.target/i386/pr115397.c
@@ -1,4 +1,5 @@
/* { dg-do compile { target ia32 } } */
+/* { dg-require-effective-target fpic } */
/* { dg-options "-fPIC -mavx512f -O3" } */
int LONG_divide_AVX512F_dimensions_0;
diff --git a/gcc/testsuite/gcc.target/i386/pr118497.c b/gcc/testsuite/gcc.target/i386/pr118497.c
index ef720931aa49..e44dffa7a961 100644
--- a/gcc/testsuite/gcc.target/i386/pr118497.c
+++ b/gcc/testsuite/gcc.target/i386/pr118497.c
@@ -1,4 +1,5 @@
/* { dg-do compile { target { ia32 } } } */
+/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fpic" } */
extern void crosscall2 (void (*fn) (void *, int), void *, int);
extern void _cgo_panic (void *, int);
More information about the Gcc-cvs
mailing list