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  <hainque@adacore.com>

gcc/testsuite/
	* gcc.dg/sms-12.c: Add dg-require-effective-target fpic.
This commit is contained in:
Olivier Hainque 2020-01-07 16:54:13 +00:00
parent 5773855c3f
commit 8f027412f6

View 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);