public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/106783] New: [12/13 Regression] ICE in ipa-modref.cc:analyze_function
@ 2022-08-31  8:58 amonakov at gcc dot gnu.org
  2022-08-31  9:06 ` [Bug ipa/106783] [12/13 Regression] ICE in ipa-modref.cc:analyze_function since r12-5247-ga34edf9a3e907de2 marxin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: amonakov at gcc dot gnu.org @ 2022-08-31  8:58 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106783
           Summary: [12/13 Regression] ICE in
                    ipa-modref.cc:analyze_function
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amonakov at gcc dot gnu.org
                CC: amonakov at gcc dot gnu.org, asolokha at gmx dot com,
                    marxin at gcc dot gnu.org, unassigned at gcc dot gnu.org
  Target Milestone: ---

+++ This bug was initially created as a clone of Bug #106781 +++

ICEs when emitting a tree dump with -O2 -fdump-tree-modref2

int n;

__attribute__ ((noinline,noclone,returns_twice)) static int
bar (int)
{
  n /= 0;

  return n;
}

int
foo (int x)
{
  return bar (x);
}

t.c: In function ‘foo’:
t.c:12:1: internal compiler error: in analyze_function, at ipa-modref.cc:3286
   12 | foo (int x)
      | ^~~
0x10e548e analyze_function
        gcc/ipa-modref.cc:3286
0x10e83b5 execute
        gcc/ipa-modref.cc:4186


Note that -fdump-tree-modref2 is needed. It reaches a gcc_unreachable(), I'd
suggest to move the verification outside of dumping if possible, so the
compiler doesn't ICE or not depending on whether dumping is requested.

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

end of thread, other threads:[~2024-02-12 17:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-31  8:58 [Bug ipa/106783] New: [12/13 Regression] ICE in ipa-modref.cc:analyze_function amonakov at gcc dot gnu.org
2022-08-31  9:06 ` [Bug ipa/106783] [12/13 Regression] ICE in ipa-modref.cc:analyze_function since r12-5247-ga34edf9a3e907de2 marxin at gcc dot gnu.org
2022-08-31 12:15 ` rguenth at gcc dot gnu.org
2022-10-19  6:53 ` rguenth at gcc dot gnu.org
2023-05-08 12:25 ` [Bug ipa/106783] [12/13/14 " rguenth at gcc dot gnu.org
2024-02-12 17:31 ` pinskia 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).