The testcase is written for small model.  If customized local test
environment add -mcmodel=tiny explicitly then it will override what's
passed in dg-options.

Need to apply the same restriction as got_mem_hoist_1.c

Committed as obivious.

gcc/testsuite/
  * gcc.target/aarch64/pic-small.c (dg-skip-if): Skip tiny and large
  code model.
  
-- 
Regards,
Jiong


diff --git a/gcc/testsuite/gcc.target/aarch64/pic-small.c b/gcc/testsuite/gcc.target/aarch64/pic-small.c
index 282e4d0..ce539bb 100644
--- a/gcc/testsuite/gcc.target/aarch64/pic-small.c
+++ b/gcc/testsuite/gcc.target/aarch64/pic-small.c
@@ -1,3 +1,4 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target aarch64_small_fpic } */
 /* { dg-options "-O2 -fpic -fno-inline --save-temps" } */
+/* { dg-skip-if "-fpic for AArch64 small code model" { aarch64*-*-* }  { "-mcmodel=tiny" "-mcmodel=large" } { "" } } */

 void abort ();
 int global_a;

Reply via email to