diff options
author | Olivier Hainque <hainque@adacore.com> | 2020-01-07 16:54:13 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@adacore.com> | 2020-11-05 17:49:20 +0000 |
commit | 8f027412f6612da1980d951bb62d7a2d7a40c8f8 (patch) | |
tree | 570289555bcd4a2b41a8e0ceb2462f35d0eefc1e /gcc | |
parent | 5773855c3f57da5864a848c12844883bd1c48b24 (diff) | |
download | gcc-8f027412f6612da1980d951bb62d7a2d7a40c8f8.zip gcc-8f027412f6612da1980d951bb62d7a2d7a40c8f8.tar.gz gcc-8f027412f6612da1980d951bb62d7a2d7a40c8f8.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/sms-12.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |