[committed] testsuite: Require fpic support for pr116887.c

Message ID 20241102210357.46525-2-dimitar@dinux.eu
State Committed
Commit af5a62ee88fbfbf5d60872bff2be5c2c0345dcf7
Headers
Series [committed] testsuite: Require fpic support for pr116887.c |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply

Commit Message

Dimitar Dimitrov Nov. 2, 2024, 9:03 p.m. UTC
  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 <xry111@xry111.site>
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
---
 gcc/testsuite/gcc.dg/pr116887.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

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