public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106260] New: [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289
@ 2022-07-11 18:58 gscfq@t-online.de
  2022-07-11 19:57 ` [Bug ipa/106260] [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2022-07-11 18:58 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106260
           Summary: [10/11/12/13 Regression] ICE in
                    initialize_node_lattices, at ipa-cp.cc:1289
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r8 and file g++.dg/lto/pr69589_1.C :


$ gcc-13-20220710 -c pr69589_1.C -O2 -fwhole-program -fno-unit-at-a-time
during IPA pass: cp
pr69589_1.C:60:1: internal compiler error: in initialize_node_lattices, at
ipa-cp.cc:1289
   60 | }
      | ^
0x1fa42bf initialize_node_lattices
        ../../gcc/ipa-cp.cc:1289
0x1facd69 ipcp_propagate_stage
        ../../gcc/ipa-cp.cc:4024
0x1facd69 ipcp_driver
        ../../gcc/ipa-cp.cc:6590

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

* [Bug ipa/106260] [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c
  2022-07-11 18:58 [Bug c++/106260] New: [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 gscfq@t-online.de
@ 2022-07-11 19:57 ` marxin at gcc dot gnu.org
  2022-07-11 21:05 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-07-11 19:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-07-11
             Status|UNCONFIRMED                 |NEW
            Summary|[10/11/12/13 Regression]    |[10/11/12/13 Regression]
                   |ICE in                      |ICE in
                   |initialize_node_lattices,   |initialize_node_lattices,
                   |at ipa-cp.cc:1289           |at ipa-cp.cc:1289 since
                   |                            |r8-1887-g0eaf0bfe94ff5a7c
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |jamborm at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r8-1887-g0eaf0bfe94ff5a7c.

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

* [Bug ipa/106260] [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c
  2022-07-11 18:58 [Bug c++/106260] New: [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 gscfq@t-online.de
  2022-07-11 19:57 ` [Bug ipa/106260] [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c marxin at gcc dot gnu.org
@ 2022-07-11 21:05 ` pinskia at gcc dot gnu.org
  2022-07-12  6:35 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-07-11 21:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.5

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

* [Bug ipa/106260] [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c
  2022-07-11 18:58 [Bug c++/106260] New: [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 gscfq@t-online.de
  2022-07-11 19:57 ` [Bug ipa/106260] [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c marxin at gcc dot gnu.org
  2022-07-11 21:05 ` pinskia at gcc dot gnu.org
@ 2022-07-12  6:35 ` rguenth at gcc dot gnu.org
  2022-07-13 16:58 ` jamborm at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-07-12  6:35 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug ipa/106260] [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c
  2022-07-11 18:58 [Bug c++/106260] New: [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2022-07-12  6:35 ` rguenth at gcc dot gnu.org
@ 2022-07-13 16:58 ` jamborm at gcc dot gnu.org
  2022-07-13 21:07 ` jamborm at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jamborm at gcc dot gnu.org @ 2022-07-13 16:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> ---
IPA-CP is confused by seeing a local function which does not have any caller,
it expects that all such functions would be removed as unreachable.

The assert has been somewhat useful so I'd rather keep it but perhaps it should
not trigger when there is -fno-toplevel-reorder in place?

Of course, using both -fno-toplevel-reorder and -fwhole-program is a bit
strange .

Interestingly, the manual description of -fno-toplevel-reorder only says that
"unreferenced static variables are not removed" but does not say anything about
not removing static uncalled functions.

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

* [Bug ipa/106260] [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c
  2022-07-11 18:58 [Bug c++/106260] New: [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2022-07-13 16:58 ` jamborm at gcc dot gnu.org
@ 2022-07-13 21:07 ` jamborm at gcc dot gnu.org
  2023-07-07 10:43 ` [Bug ipa/106260] [11/12/13/14 " rguenth at gcc dot gnu.org
  2023-12-10  9:07 ` zsojka at seznam dot cz
  6 siblings, 0 replies; 8+ messages in thread
From: jamborm at gcc dot gnu.org @ 2022-07-13 21:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> ---
I proposed a patch on the mailing list:
https://gcc.gnu.org/pipermail/gcc-patches/2022-July/598371.html

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

* [Bug ipa/106260] [11/12/13/14 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c
  2022-07-11 18:58 [Bug c++/106260] New: [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2022-07-13 21:07 ` jamborm at gcc dot gnu.org
@ 2023-07-07 10:43 ` rguenth at gcc dot gnu.org
  2023-12-10  9:07 ` zsojka at seznam dot cz
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

* [Bug ipa/106260] [11/12/13/14 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c
  2022-07-11 18:58 [Bug c++/106260] New: [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 gscfq@t-online.de
                   ` (5 preceding siblings ...)
  2023-07-07 10:43 ` [Bug ipa/106260] [11/12/13/14 " rguenth at gcc dot gnu.org
@ 2023-12-10  9:07 ` zsojka at seznam dot cz
  6 siblings, 0 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2023-12-10  9:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Zdenek Sojka <zsojka at seznam dot cz> ---
Created attachment 56843
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56843&action=edit
slightly reduced testcase

$ x86_64-pc-linux-gnu-gcc -O2 -fno-unit-at-a-time -fwhole-program testcase.C
during IPA pass: cp
testcase.C:27:1: internal compiler error: in initialize_node_lattices, at
ipa-cp.cc:1593
   27 | }
      | ^
0xe60b6b initialize_node_lattices
        /repo/gcc-trunk/gcc/ipa-cp.cc:1593
0xe60b6b ipcp_propagate_stage
        /repo/gcc-trunk/gcc/ipa-cp.cc:4300
0xe60b6b ipcp_driver
        /repo/gcc-trunk/gcc/ipa-cp.cc:6700
0xe60b6b execute
        /repo/gcc-trunk/gcc/ipa-cp.cc:6775
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

end of thread, other threads:[~2023-12-10  9:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11 18:58 [Bug c++/106260] New: [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 gscfq@t-online.de
2022-07-11 19:57 ` [Bug ipa/106260] [10/11/12/13 Regression] ICE in initialize_node_lattices, at ipa-cp.cc:1289 since r8-1887-g0eaf0bfe94ff5a7c marxin at gcc dot gnu.org
2022-07-11 21:05 ` pinskia at gcc dot gnu.org
2022-07-12  6:35 ` rguenth at gcc dot gnu.org
2022-07-13 16:58 ` jamborm at gcc dot gnu.org
2022-07-13 21:07 ` jamborm at gcc dot gnu.org
2023-07-07 10:43 ` [Bug ipa/106260] [11/12/13/14 " rguenth at gcc dot gnu.org
2023-12-10  9:07 ` zsojka at seznam dot cz

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