https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
--- Comment #8 from Chinoune ---
(In reply to Thomas Koenig from comment #7)
> Fun fact: -flto also fixes it.
It fixes the first test not the second (comment #5)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
--- Comment #7 from Thomas Koenig ---
Fun fact: -flto also fixes it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
--- Comment #6 from Thomas Koenig ---
The *.original dump shows ANNOTATE_EXPRs:
if (ANNOTATE_EXPR ) goto L.3;
i.0 = 0;
count.2 = 2;
while (1)
{
if (ANNOTATE_EXPR ) goto L.2;
Thes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
--- Comment #5 from Chinoune ---
Created attachment 41124
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41124&action=edit
the second test program
This is another test which fails with all the optimizations directives (except
-Og).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
--- Comment #4 from Dominique d'Humieres ---
I also get a wrong result if I compile the test with
-O1 -fno-auto-inc-dec -fno-branch-count-reg -fno-combine-stack-adjustments
-fno-compare-elim -fno-cprop-registers -fno-dce -fno-defer-pop
-fno-del
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
Dominique d'Humieres changed:
What|Removed |Added
Status|WAITING |NEW
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
--- Comment #3 from Dominique d'Humieres ---
Compiling the code with -O1 gives
131076.000 6.
10.000 6.
131080.000 6.
and with -Os
4. 6.
10.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
--- Comment #2 from Chinoune ---
(In reply to Dominique d'Humieres from comment #1)
> WORKSFORME on x86_64-apple-darwin16 from 4.8 up to trunk (7.0):
>
>10.000 6.
>10.000 6.
>10.000
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
Dominique d'Humieres changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
Richard Biener changed:
What|Removed |Added
Keywords||wrong-code
Priority|P3
10 matches
Mail list logo