Add dg-require-effective-target fpic to gcc.dg test
authorOlivier Hainque <hainque@adacore.com>
Tue, 7 Jan 2020 16:54:13 +0000 (16:54 +0000)
committerOlivier Hainque <hainque@adacore.com>
Thu, 5 Nov 2020 17:49:20 +0000 (17:49 +0000)
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  <hainque@adacore.com>

gcc/testsuite/
* gcc.dg/sms-12.c: Add dg-require-effective-target fpic.

gcc/testsuite/gcc.dg/sms-12.c

index aef32ee..3ec50f2 100644 (file)
@@ -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);