Fix test that uses -fPIC without stating the requirement for PIC
support.

Bootstrapped on x86_64-linux-gnu.  Also tested on ppc- and x86-vx7r2
with gcc-12.

for  gcc/testsuite/ChangeLog

        * gcc.target/i386/pr103074.c: Require fpic support.
---
 gcc/testsuite/gcc.target/i386/pr103074.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.target/i386/pr103074.c 
b/gcc/testsuite/gcc.target/i386/pr103074.c
index 276ad82a1de1e..668d9531096dc 100644
--- a/gcc/testsuite/gcc.target/i386/pr103074.c
+++ b/gcc/testsuite/gcc.target/i386/pr103074.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target fpic } */
 /* { dg-options "-march=bonnell -Os -fPIC -fschedule-insns -w" } */
 
 void

-- 
Alexandre Oliva, happy hacker                https://FSFLA.org/blogs/lxo/
   Free Software Activist                       GNU Toolchain Engineer
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <https://stallmansupport.org>

Reply via email to