[committed] d: Fix gdc.dg/pr92216.d FAILs on 32-bit targets

Message ID 20200401211123.13110-1-ibuclaw@gdcproject.org
State New
Headers show
Series
  • [committed] d: Fix gdc.dg/pr92216.d FAILs on 32-bit targets
Related show

Commit Message

Iain Buclaw via Gcc-patches April 1, 2020, 9:11 p.m.
Hi,

This patch fixes the test for PR92216 to also succeed on 16 and 32-bit
targets.  The symbol being scanned for only matched on 64-bit targets
where the this pointer offset is 16.

Tested on x86_64-linux-gnu with -m32 and -mx32.  Also checked avr-gcc
for what output comes from a 16-bit compiler.

Committed to mainline.

Regards
Iain.
---

gcc/testsuite/ChangeLog:

	PR d/94321
	* gdc.dg/pr92216.d: Update to work on targets with 16 or 32-bit
	pointers.

---
 gcc/testsuite/gdc.dg/pr92216.d | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.20.1

Patch

diff --git a/gcc/testsuite/gdc.dg/pr92216.d b/gcc/testsuite/gdc.dg/pr92216.d
index 330604c9c89..6a87025a7d0 100644
--- a/gcc/testsuite/gdc.dg/pr92216.d
+++ b/gcc/testsuite/gdc.dg/pr92216.d
@@ -1,8 +1,8 @@ 
 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92216
 // { dg-options "-I $srcdir/gdc.dg" }
 // { dg-do compile }
-// { dg-final { scan-assembler "_DT16_D7imports7pr922161B8__mixin24getSMFZPv\[: \t\n\]" } }
-// { dg-final { scan-assembler-not "(.globl|.global)\[ 	\]+_DT16_D7imports7pr922161B8__mixin24getSMFZPv" } }
+// { dg-final { scan-assembler "_DT(4|8|16)_D7imports7pr922161B8__mixin24getSMFZPv\[: \t\n\]" } }
+// { dg-final { scan-assembler-not "(.globl|.global)\[ 	\]+_DT(4|8|16)_D7imports7pr922161B8__mixin24getSMFZPv" } }
 module pr92216;
 
 private import imports.pr92216;