From: Olivier Hainque Date: Tue, 7 Jan 2020 16:54:13 +0000 (+0000) Subject: Add dg-require-effective-target fpic to gcc.dg test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f027412f6612da1980d951bb62d7a2d7a40c8f8;p=gcc.git 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. --- diff --git a/gcc/testsuite/gcc.dg/sms-12.c b/gcc/testsuite/gcc.dg/sms-12.c index aef32ee0286..3ec50f272f1 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);