PR tree-optimization/102892 - Remove undefined behaviour from testcase.
Commit Message
There was a patch posted to remove the undefined behaviour from this
testcase, but it appears to never have been applied.
Pushed.
Andrew
From 73e41228fc8f7f2b6e6a631192533abb2110ba2b Mon Sep 17 00:00:00 2001
From: Andrew MacLeod <amacleod@redhat.com>
Date: Tue, 27 Sep 2022 18:42:33 -0400
Subject: [PATCH 1/6] Remove undefined behaviour from testscase.
There was a patch posted to remove the undefined behaviour from this
testcase, but it appear to never have been applied.
PR tree-optimization/102892
gcc/teststuite/
* gcc.dg/pr102892-1.c: Remove undefined behaviour.
---
gcc/testsuite/gcc.dg/pr102892-1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -12,7 +12,7 @@ int
main ()
{
long c = 0;
- for (long a; a < 1; ++a)
+ for (long a = 0; a < 1; ++a)
for (; c <= 1; c++) {
bar();
if (1 == b[c][0])
--
2.37.3