aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2022-03-29 22:47:18 -0300
committerAlexandre Oliva <oliva@gnu.org>2022-03-29 22:47:18 -0300
commita5a8d512782cf4765cf17fc79dd7ecc2a392e0a9 (patch)
tree54e7272d626057c876d52b73df4d60ceebaa1873
parent9f774626c021c244be6f4c9589c9dac71d544b15 (diff)
downloadgcc-a5a8d512782cf4765cf17fc79dd7ecc2a392e0a9.zip
gcc-a5a8d512782cf4765cf17fc79dd7ecc2a392e0a9.tar.gz
gcc-a5a8d512782cf4765cf17fc79dd7ecc2a392e0a9.tar.bz2
gcc.dg/weak/typeof-2: arm may use constant pool
Some ARM configurations, such as with -mlong-calls, load the call target from the constant pool, breaking the expectation of the test as on several other targets. for gcc/testsuite/ChangeLog * gcc.dg/weak/typeof-2.c: Add arm*-*-* to targets that may place the call target in a constant pool.
-rw-r--r--gcc/testsuite/gcc.dg/weak/typeof-2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/weak/typeof-2.c b/gcc/testsuite/gcc.dg/weak/typeof-2.c
index afce17f..c6e45624 100644
--- a/gcc/testsuite/gcc.dg/weak/typeof-2.c
+++ b/gcc/testsuite/gcc.dg/weak/typeof-2.c
@@ -40,6 +40,8 @@ int bar3 (int x)
// { dg-final { if [string match {sh[elb1-9]*-*-*} $target_triplet ] {return} } }
// Likewise for S/390 targets
// { dg-final { if [string match s390*-*-* $target_triplet ] {return} } }
+// Likewise for ARM targets
+// { dg-final { if [string match arm*-*-* $target_triplet ] {return} } }
// Likewise for CRIS targets.
// { dg-final { if [string match cris-*-* $target_triplet ] {return} } }
// Likewise for m68k targets.