diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2025-01-05 11:19:31 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2025-01-05 11:49:38 +0100 |
commit | 345ad67fc2ee321d5c2e5371711a2d249b92b956 (patch) | |
tree | 57809db4ab1c9798a9dca5d05764791897e3a5d7 | |
parent | a0aa30fc920dffdb114de8a9b1bec54dcf7590af (diff) | |
download | gcc-345ad67fc2ee321d5c2e5371711a2d249b92b956.zip gcc-345ad67fc2ee321d5c2e5371711a2d249b92b956.tar.gz gcc-345ad67fc2ee321d5c2e5371711a2d249b92b956.tar.bz2 |
testsuite, d: Fix failing pr110406.d test
At some point during GCC 15 development, the compiler-generated code for
D ModuleInfo support now gets transformed into the following on x86:
_12 = (uint) &__stop_minfo;
_13 = (uint) &__start_minfo;
_14 = (uint) &gdc.dso_slot;
_15 = {1, _14, _13, _12};
gdc.dso_initialized = 0;
MEM <unsigned char[8]> [(void *)&D.1974 + 16B] = {};
MEM <vector(4) uint> [(void *)&D.1974] = _15;
_d_dso_registry (&D.1974);
This causes the scan-tree-dump-not test to fail. As ModuleInfo is not
what's being checked for in PR110406, remove its generation altogether.
gcc/testsuite/ChangeLog:
* gdc.dg/torture/pr110406.d: Add -fno-moduleinfo to dg-options.
-rw-r--r-- | gcc/testsuite/gdc.dg/torture/pr110406.d | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gdc.dg/torture/pr110406.d b/gcc/testsuite/gdc.dg/torture/pr110406.d index c380e4b..169aec7 100644 --- a/gcc/testsuite/gdc.dg/torture/pr110406.d +++ b/gcc/testsuite/gdc.dg/torture/pr110406.d @@ -1,6 +1,6 @@ // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110406 // { dg-do compile { target i?86-*-* x86_64-*-* } } -// { dg-options "-fdump-tree-optimized" } +// { dg-options "-fno-moduleinfo -fdump-tree-optimized" } struct cpuid_abcd_t { uint eax; |