https://gcc.gnu.org/g:af3e27150ad50011889a2d5159058837c5ae0d62

commit r17-1222-gaf3e27150ad50011889a2d5159058837c5ae0d62
Author: Richard Biener <[email protected]>
Date:   Tue Jun 2 14:44:33 2026 +0200

    tree-optimization/125250 - UB in testcase
    
    The following avoids accessing a short as _Bool.
    
            PR tree-optimization/125250
            * gcc.dg/torture/pr125250.c: Declare g0 as _Bool.

Diff:
---
 gcc/testsuite/gcc.dg/torture/pr125250.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/torture/pr125250.c 
b/gcc/testsuite/gcc.dg/torture/pr125250.c
index 25d69c0e3050..bd135999be31 100644
--- a/gcc/testsuite/gcc.dg/torture/pr125250.c
+++ b/gcc/testsuite/gcc.dg/torture/pr125250.c
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 
-short g0, __chk, g9, g6;
-_Bool g1;
+short __chk, g9, g6;
+_Bool g0, g1;
 void *g4;
 
 void __attribute__((noipa)) f5(_Bool a2, int a5)

Reply via email to