Test case pr116887.c is passing -fpic, so mark it as such.

With this patch the test is now properly marked as unsupported
for pru-unknown-elf.  Test still passes for x86_64-pc-linux-gnu.

Pushed to trunk as obvious.

gcc/testsuite/ChangeLog:

        * gcc.dg/pr116887.c: Require effective target fpic.

Cc: Xi Ruoyao <xry...@xry111.site>
Signed-off-by: Dimitar Dimitrov <dimi...@dinux.eu>
---
 gcc/testsuite/gcc.dg/pr116887.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/pr116887.c b/gcc/testsuite/gcc.dg/pr116887.c
index b7255e09a18..e22b944eade 100644
--- a/gcc/testsuite/gcc.dg/pr116887.c
+++ b/gcc/testsuite/gcc.dg/pr116887.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target fpic } */
 /* { dg-options "-fpic" } */
 
 struct link_map
-- 
2.47.0

Reply via email to