From fb25041e11d92ea2df2e92065b256f8e5aa58a6c Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Wed, 1 Apr 2020 23:02:01 +0200 Subject: [PATCH] d: Fix gdc.dg/pr92216.d FAILs on 32-bit targets The symbol being scanned for only matched on 64-bit targets. gcc/testsuite/ChangeLog: PR d/94321 * gdc.dg/pr92216.d: Update to work on targets with 16 or 32-bit pointers. --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gdc.dg/pr92216.d | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4d617c72c1b..bcaf2e727a3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-04-01 Iain Buclaw + + PR d/94321 + * gdc.dg/pr92216.d: Update to work on targets with 16 or 32-bit + pointers. + 2020-04-01 David Malcolm PR analyzer/94378 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; -- 2.30.2