]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, d: Fix failing pr110406.d test
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 5 Jan 2025 10:19:31 +0000 (11:19 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 5 Jan 2025 10:49:38 +0000 (11:49 +0100)
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.

gcc/testsuite/gdc.dg/torture/pr110406.d

index c380e4bdec8671c78ea2ad762200ec0eababf98a..169aec7b6e50d3a63466877ae15b3de4fc9a6227 100644 (file)
@@ -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;