https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126153

--- Comment #14 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Sam James from comment #13)
> This is looking more promising, but not checked it carefully. Will wait to
> see how your further work goes first.

Final version is:

int g_10;
void main() {
  g_10 = 9;
  for (; g_10; g_10 -= 1)
    ;
}

which is no better than the first. cvise script is:

/usr/bin/gcc -w -Werror=return-type -Werror=uninitialized -Werror=overflow
-Werror=sequence-point bug1227.c || exit 1
./a.out || exit 1

~/gcc/results/bin/gcc -w -O3  -ftrivial-auto-var-init=zero bug1227.c || exit 1
./a.out || exit 0
exit 1

I am baffled. Someone with more idea of cvise could maybe
make progress with this.

Reply via email to