public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/98906] New: [8/9/10/11 Regression] Miscompiles code even at -O1
@ 2021-01-31 23:44 amonakov at gcc dot gnu.org
  2021-02-01  0:07 ` [Bug tree-optimization/98906] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: amonakov at gcc dot gnu.org @ 2021-01-31 23:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98906
           Summary: [8/9/10/11 Regression] Miscompiles code even at -O1
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amonakov at gcc dot gnu.org
  Target Milestone: ---

Created attachment 50097
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50097&action=edit
testcase

The attached testcase is clean w.r.t ASan and UBSan. At -O1+, 'main' is
miscompiled to a single basic block reporting an error on initial loop
iteration, since gcc-6, while -Og and '-O1 -fno-inline' yield expected code.

.optimized dump is wrong, so one of GIMPLE passes is the culprit, but a bit
hard to see which one exactly.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-01  8:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-31 23:44 [Bug tree-optimization/98906] New: [8/9/10/11 Regression] Miscompiles code even at -O1 amonakov at gcc dot gnu.org
2021-02-01  0:07 ` [Bug tree-optimization/98906] " pinskia at gcc dot gnu.org
2021-02-01  0:16 ` pinskia at gcc dot gnu.org
2021-02-01  0:32 ` pinskia at gcc dot gnu.org
2021-02-01  0:36 ` pinskia at gcc dot gnu.org
2021-02-01  8:02 ` jakub at gcc dot gnu.org
2021-02-01  8:15 ` amonakov 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).