The following avoids accessing a short as _Bool.

Tested on x86_64-unknown-linux-gnu, pushed.

        PR tree-optimization/125250
        * gcc.dg/torture/pr125250.c: Declare g0 as _Bool.
---
 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 25d69c0e305..bd135999be3 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)
-- 
2.51.0

Reply via email to