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

* [Bug ipa/106783] [12/13 Regression] ICE in ipa-modref.cc:analyze_function since r12-5247-ga34edf9a3e907de2
  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 ` marxin at gcc dot gnu.org
  2022-08-31 12:15 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-08-31  9:06 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|[12/13 Regression] ICE in   |[12/13 Regression] ICE in
                   |ipa-modref.cc:analyze_funct |ipa-modref.cc:analyze_funct
                   |ion                         |ion since
                   |                            |r12-5247-ga34edf9a3e907de2
   Last reconfirmed|                            |2022-08-31
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-5247-ga34edf9a3e907de2.

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

* [Bug ipa/106783] [12/13 Regression] ICE in ipa-modref.cc:analyze_function since r12-5247-ga34edf9a3e907de2
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-08-31 12:15 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.3

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

* [Bug ipa/106783] [12/13 Regression] ICE in ipa-modref.cc:analyze_function since r12-5247-ga34edf9a3e907de2
  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
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-19  6:53 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

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

* [Bug ipa/106783] [12/13/14 Regression] ICE in ipa-modref.cc:analyze_function since r12-5247-ga34edf9a3e907de2
  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
                   ` (2 preceding siblings ...)
  2022-10-19  6:53 ` rguenth at gcc dot gnu.org
@ 2023-05-08 12:25 ` rguenth at gcc dot gnu.org
  2024-02-12 17:31 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-08 12:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.3                        |12.4

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 12.3 is being released, retargeting bugs to GCC 12.4.

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

* [Bug ipa/106783] [12/13/14 Regression] ICE in ipa-modref.cc:analyze_function since r12-5247-ga34edf9a3e907de2
  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
                   ` (3 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-12 17:31 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 113890 has been marked as a duplicate of this bug. ***

^ 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).