]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.dg/weak/typeof-2: arm may use constant pool
authorAlexandre Oliva <oliva@adacore.com>
Wed, 30 Mar 2022 01:47:18 +0000 (22:47 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 30 Mar 2022 01:47:18 +0000 (22:47 -0300)
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.

gcc/testsuite/gcc.dg/weak/typeof-2.c

index afce17f53cb09431167ad026831471afa30fe4cd..c6e45624810aa7f9e91176b055da4cbaa3d15fed 100644 (file)
@@ -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.