On 2026-11-04 19:03, Mike Stump wrote:
On Nov 1, 2026, at 4:59 AM, Torbjörn SVENSSON <[email protected]>
wrote:
Ok for trunk?
Ok, but always happy to defer to a login expert.
Pushed as r17-5973-ga2bd29ccfcb372.
@Mike, what do you mean by "a login expert"? This patch has nothing to do with
any login?
Kind regards,
Torbjörn
To fix this on releases/gcc-16, a different approach is need.
Kind regards,
Torbjörn
--
The nested crash tests fail when the compiler is built without checking.
Add a checking effective target and use it to skip these tests.
PR testsuite/124872
gcc/ChangeLog:
* doc/sourcebuild.texi: Document checking.
gcc/testsuite/ChangeLog:
* lib/et-static.def (checking): New effective target.
* gcc.dg/plugin/crash-test-nested-ice.c: Require checking.
* gcc.dg/plugin/crash-test-nested-write-through-null.c: Likewise.
Signed-off-by: Torbjörn SVENSSON <[email protected]>
---
gcc/doc/sourcebuild.texi | 3 +++
gcc/testsuite/gcc.dg/plugin/crash-test-nested-ice.c | 1 +
.../gcc.dg/plugin/crash-test-nested-write-through-null.c | 1 +
gcc/testsuite/lib/et-static.def | 4 ++++
4 files changed, 9 insertions(+)
diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi
index 897be37e450..f4dca33b088 100644
--- a/gcc/doc/sourcebuild.texi
+++ b/gcc/doc/sourcebuild.texi
@@ -3064,6 +3064,9 @@ Target supports automatic stack alignment.
@item branch_cost
Target supports @option{-branch-cost=N}.
+@item checking
+Compiler has been configured with internal checking enabled.
+
@item const_volatile_readonly_section
Target places const volatile variables in readonly sections.
diff --git a/gcc/testsuite/gcc.dg/plugin/crash-test-nested-ice.c
b/gcc/testsuite/gcc.dg/plugin/crash-test-nested-ice.c
index 5a98813896f..eda7c7cfdf6 100644
--- a/gcc/testsuite/gcc.dg/plugin/crash-test-nested-ice.c
+++ b/gcc/testsuite/gcc.dg/plugin/crash-test-nested-ice.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target checking } */
/* { dg-skip-if "Target frontend exits early on syntax recovery errors" {
hppa*-*-hpux* } } */
/* { dg-additional-options "-fno-report-bug" } */
/* { dg-additional-options "-fplugin-arg-crash_test_plugin-nested" } */
diff --git a/gcc/testsuite/gcc.dg/plugin/crash-test-nested-write-through-null.c
b/gcc/testsuite/gcc.dg/plugin/crash-test-nested-write-through-null.c
index 3f1277bff16..fa3bdde6d8a 100644
--- a/gcc/testsuite/gcc.dg/plugin/crash-test-nested-write-through-null.c
+++ b/gcc/testsuite/gcc.dg/plugin/crash-test-nested-write-through-null.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target checking } */
/* { dg-skip-if "Target frontend exits early on syntax recovery errors" {
hppa*-*-hpux* } } */
/* { dg-additional-options "-fno-report-bug" } */
/* { dg-additional-options "-fplugin-arg-crash_test_plugin-nested" } */
diff --git a/gcc/testsuite/lib/et-static.def b/gcc/testsuite/lib/et-static.def
index b5a32335920..76c9a3e3a0f 100644
--- a/gcc/testsuite/lib/et-static.def
+++ b/gcc/testsuite/lib/et-static.def
@@ -24,6 +24,10 @@
# Keep this sorted alphabetically by effective-target name. */
+checking
+CHECKING_P
+the compiler was built with checking enabled
+
code_6_gottpoff_reloc
HAVE_AS_R_X86_64_CODE_6_GOTTPOFF
assembler and linker support R_X86_64_CODE_6_GOTTPOFF