public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103182] New: [12 Regression] Recent change causes code correctness regression
@ 2021-11-11  6:02 law at gcc dot gnu.org
  2021-11-11  6:13 ` [Bug tree-optimization/103182] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: law at gcc dot gnu.org @ 2021-11-11  6:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103182
           Summary: [12 Regression] Recent change causes code correctness
                    regression
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: law at gcc dot gnu.org
  Target Milestone: ---

This change:

d70ef65692fced7ab72e0aceeff7407e5a34d96d is the first bad commit
commit d70ef65692fced7ab72e0aceeff7407e5a34d96d
Author: Jan Hubicka <jh@suse.cz>
Date:   Wed Nov 10 13:08:41 2021 +0100

    Make EAF flags more regular (and expressive)

    I hoped that I am done with EAF flags related changes, but while looking
into
    the Fortran testcases I noticed that I have designed them in unnecesarily
    restricted way.  I followed the scheme of NOESCAPE and NODIRECTESCAPE which
is
    however the only property tht is naturally transitive.

    This patch replaces the existing flags by 9 flags:

[ ... ]

Is causing gcc.dg/torture/pr45962-2.c to fail on or1k-elf and a few other
platforms at -O2.

You should be able to reproduce this with just a cross compiler since the
.optimized dump after the change above just calls "foo" then aborts.  The check
for the value of i after the call to foo has been eliminated.

There's a bit of dodgy code in foo() from an aliasing standpoint.  I haven't
looked at it real closely though.

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

end of thread, other threads:[~2021-11-13  1:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11  6:02 [Bug tree-optimization/103182] New: [12 Regression] Recent change causes code correctness regression law at gcc dot gnu.org
2021-11-11  6:13 ` [Bug tree-optimization/103182] " pinskia at gcc dot gnu.org
2021-11-11  6:15 ` pinskia at gcc dot gnu.org
2021-11-11  7:51 ` redi at gcc dot gnu.org
2021-11-11  8:08 ` hubicka at gcc dot gnu.org
2021-11-11  9:18 ` rguenth at gcc dot gnu.org
2021-11-11 14:53 ` law at gcc dot gnu.org
2021-11-12 22:06 ` hubicka at gcc dot gnu.org
2021-11-13  0:51 ` cvs-commit at gcc dot gnu.org
2021-11-13  1:10 ` hubicka 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).