aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/long-calls-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/arm/long-calls-1.c')
-rw-r--r--gcc/testsuite/gcc.target/arm/long-calls-1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/arm/long-calls-1.c b/gcc/testsuite/gcc.target/arm/long-calls-1.c
index 587f6d6f25b..f10f10606a6 100644
--- a/gcc/testsuite/gcc.target/arm/long-calls-1.c
+++ b/gcc/testsuite/gcc.target/arm/long-calls-1.c
@@ -1,6 +1,8 @@
/* Check that long calls to different sections are not optimized to "bl". */
/* { dg-do compile { target { arm32 && nonpic } } } */
/* { dg-options "-O2" } */
+/* This test expects that short calls are the default. */
+/* { dg-skip-if "-mlong-calls in use" { "*-*-*" } { "-mlong-calls" } { "" } } */
#define section(S) __attribute__((section(S)))
#define weak __attribute__((weak))