tree-optimization/125250 - UB in testcase
Checks
Commit Message
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(-)
@@ -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)