From 8f027412f6612da1980d951bb62d7a2d7a40c8f8 Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Tue, 7 Jan 2020 16:54:13 +0000 Subject: [PATCH] Add dg-require-effective-target fpic to gcc.dg test The test uses -fpic and doesn't query the target support for that option otherwise, resulting in failure on configurations not supporting -fpic such as VxWorks for kernel mode. 2020-11-03 Olivier Hainque gcc/testsuite/ * gcc.dg/sms-12.c: Add dg-require-effective-target fpic. --- gcc/testsuite/gcc.dg/sms-12.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/sms-12.c b/gcc/testsuite/gcc.dg/sms-12.c index aef32ee..3ec50f2 100644 --- a/gcc/testsuite/gcc.dg/sms-12.c +++ b/gcc/testsuite/gcc.dg/sms-12.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-skip-if "" { ! { aarch64*-*-* } } } */ +/* { dg-require-effective-target fpic } */ /* { dg-options "-O2 -fmodulo-sched -funroll-loops -fdump-rtl-sms --param sms-min-sc=1 -fmodulo-sched-allow-regmoves -fPIC" } */ extern void abort (void); -- 2.7.4