Hello,

This patch adds dg-require-effective-target fpic
to an aarch64 specific gcc.dg test using -fPIC,
which helps circumvent a failure we observed while
testing the aarch64 port for VxWorks.

ok to commit ?

Thanks in advance,

Best Regards,

Olivier

2020-11-03  Olivier Hainque  <hain...@adacore.com>
    
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 aef32ee0286b..3ec50f272f19 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.17.1

Reply via email to