public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/107373] New: Unexpected result with loop optimisation @ 2022-10-24 8:39 raphael.monod at wanadoo dot fr 2022-10-24 12:25 ` [Bug fortran/107373] " marxin at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: raphael.monod at wanadoo dot fr @ 2022-10-24 8:39 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107373 Bug ID: 107373 Summary: Unexpected result with loop optimisation Product: gcc Version: 8.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: raphael.monod at wanadoo dot fr Target Milestone: --- Created attachment 53765 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53765&action=edit Source of test producing the bug (MWE) The attached test show the vector "tab_int_from_logical" contains -1, although +1 are expected. Compiler option -O3 is required to get this bug. Adding a print in the loop go around it. Degreasing the dimension 'IDIM' from 16 to 15 go around it. I do not have test all GCC releases, but I met this bug with release : 7.3.0, 8.2.0, 8.5.0, 9.4.0. Everything is good with releases 6.3.0, 11.3.0, 12.1.0 I known that releases used to produce this bug are no longer supported, bug I think that debian 10 (which is again supported) use 8.x GCC release. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/107373] Unexpected result with loop optimisation 2022-10-24 8:39 [Bug fortran/107373] New: Unexpected result with loop optimisation raphael.monod at wanadoo dot fr @ 2022-10-24 12:25 ` marxin at gcc dot gnu.org 2022-10-24 12:26 ` marxin at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2022-10-24 12:25 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107373 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-10-24 CC| |marxin at gcc dot gnu.org, | |rsandifo at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Fixed on master with r10-5067-gce19a48227949920. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/107373] Unexpected result with loop optimisation 2022-10-24 8:39 [Bug fortran/107373] New: Unexpected result with loop optimisation raphael.monod at wanadoo dot fr 2022-10-24 12:25 ` [Bug fortran/107373] " marxin at gcc dot gnu.org @ 2022-10-24 12:26 ` marxin at gcc dot gnu.org 2022-10-24 12:40 ` jb at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2022-10-24 12:26 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107373 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jb at gcc dot gnu.org --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- And started with r7-5505-ga388bdc777f58251. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/107373] Unexpected result with loop optimisation 2022-10-24 8:39 [Bug fortran/107373] New: Unexpected result with loop optimisation raphael.monod at wanadoo dot fr 2022-10-24 12:25 ` [Bug fortran/107373] " marxin at gcc dot gnu.org 2022-10-24 12:26 ` marxin at gcc dot gnu.org @ 2022-10-24 12:40 ` jb at gcc dot gnu.org 2022-10-24 13:06 ` marxin at gcc dot gnu.org 2022-10-24 13:25 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jb at gcc dot gnu.org @ 2022-10-24 12:40 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107373 --- Comment #3 from Janne Blomqvist <jb at gcc dot gnu.org> --- 63ee540430c3 might be related wrt fixing it? ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/107373] Unexpected result with loop optimisation 2022-10-24 8:39 [Bug fortran/107373] New: Unexpected result with loop optimisation raphael.monod at wanadoo dot fr ` (2 preceding siblings ...) 2022-10-24 12:40 ` jb at gcc dot gnu.org @ 2022-10-24 13:06 ` marxin at gcc dot gnu.org 2022-10-24 13:25 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2022-10-24 13:06 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107373 --- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Janne Blomqvist from comment #3) > 63ee540430c3 might be related wrt fixing it? r8-4424-g63ee540430c32a ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/107373] Unexpected result with loop optimisation 2022-10-24 8:39 [Bug fortran/107373] New: Unexpected result with loop optimisation raphael.monod at wanadoo dot fr ` (3 preceding siblings ...) 2022-10-24 13:06 ` marxin at gcc dot gnu.org @ 2022-10-24 13:25 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2022-10-24 13:25 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107373 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |9.4.0 Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- In any case it's fixed in all still maintained GCC releases. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-10-24 13:25 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-10-24 8:39 [Bug fortran/107373] New: Unexpected result with loop optimisation raphael.monod at wanadoo dot fr 2022-10-24 12:25 ` [Bug fortran/107373] " marxin at gcc dot gnu.org 2022-10-24 12:26 ` marxin at gcc dot gnu.org 2022-10-24 12:40 ` jb at gcc dot gnu.org 2022-10-24 13:06 ` marxin at gcc dot gnu.org 2022-10-24 13:25 ` rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).