https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657
--- Comment #10 from David Binderman ---
Bingo !
>From snapshot 20220703, with g:f3a5e75cb66dc96e, to 20220807, with
g:ef54eb74cab17737, it goes wrong.
Perhaps someone who has the git history would like to bisect this.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657
--- Comment #9 from David Binderman ---
Same thing, back to 20220807.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657
--- Comment #8 from David Binderman ---
(In reply to David Binderman from comment #7)
> I will have a look at how to get at dates before the clone date.
I used snapshots instead. I tried 20221002, and got
$ ./results.20221002/bin/gcc -w -O3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657
--- Comment #7 from David Binderman ---
I can only go back as far as 20221028, when the git tree was installed.
$ /home/dcb36/gcc/results.20221028/bin/gcc -w -O3 -ftrivial-auto-var-init=zero
bug880.c
$ ./a.out
checksum = BCC02729
$
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657
--- Comment #6 from David Binderman ---
(In reply to David Binderman from comment #5)
> (In reply to David Binderman from comment #0)
> > Also, the possible bug seems to have first occurred sometime before 20230103
>
> Also before 20221201:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657
--- Comment #5 from David Binderman ---
(In reply to David Binderman from comment #0)
> Also, the possible bug seems to have first occurred sometime before 20230103
Also before 20221201:
$ /home/dcb36/gcc/results.20221201/bin/gcc -w -O3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657
--- Comment #4 from Andrew Pinski ---
(In reply to David Binderman from comment #3)
> (In reply to Andrew Pinski from comment #2)
> > If I initialize __trans_tmp_13 explictly to 0, the issue goes away
>
> $ fgrep trans_tmp_13 bug880.c
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657
--- Comment #3 from David Binderman ---
(In reply to Andrew Pinski from comment #2)
> If I initialize __trans_tmp_13 explictly to 0, the issue goes away
$ fgrep trans_tmp_13 bug880.c
int64_t __trans_tmp_13;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657
--- Comment #2 from Andrew Pinski ---
If I initialize __trans_tmp_13 explictly to 0, the issue goes away