public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
@ 2024-01-02 11:02 doko at gcc dot gnu.org
  2024-01-02 16:13 ` [Bug lto/113197] " doko at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: doko at gcc dot gnu.org @ 2024-01-02 11:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113197
           Summary: [14 Regressiion] ICE in in handle_call_arg, at
                    tree-ssa-structalias.cc:4119
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20240101 building the conntrack-tools package with LTO enabled,
seen on different architectures:

during GIMPLE pass: alias
../extensions/libct_proto_udp.c: In function 'final_check':
../extensions/libct_proto_udp.c:162:13: internal compiler error: in
handle_call_arg, at tree-ssa-structalias.cc:4119
  162 | static void final_check(unsigned int flags,
      |             ^
0x95f3ee handle_call_arg
        ../../src/gcc/tree-ssa-structalias.cc:4119
0x1c7c620 handle_rhs_call
        ../../src/gcc/tree-ssa-structalias.cc:4344
0x1c5ef69 find_func_aliases_for_call
        ../../src/gcc/tree-ssa-structalias.cc:5018
0x1c5ef69 find_func_aliases
        ../../src/gcc/tree-ssa-structalias.cc:5121
0x1c5c01e compute_points_to_sets
        ../../src/gcc/tree-ssa-structalias.cc:7573
0x1c5c01e compute_may_aliases()
        ../../src/gcc/tree-ssa-structalias.cc:8027
0x1b03a70 execute_function_todo
        ../../src/gcc/passes.cc:2063
0x1a7f141 do_per_function
        ../../src/gcc/passes.cc:1687
0x1a7f141 execute_todo
        ../../src/gcc/passes.cc:2142
Please submit a full bug report, with preprocessed source (by using
-freport-bug).

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

* [Bug lto/113197] [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
  2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
@ 2024-01-02 16:13 ` doko at gcc dot gnu.org
  2024-01-02 16:20 ` doko at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: doko at gcc dot gnu.org @ 2024-01-02 16:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Matthias Klose <doko at gcc dot gnu.org> ---
Created attachment 56976
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56976&action=edit
reduced test case

reduced test case, still requires another object file

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

* [Bug lto/113197] [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
  2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
  2024-01-02 16:13 ` [Bug lto/113197] " doko at gcc dot gnu.org
@ 2024-01-02 16:20 ` doko at gcc dot gnu.org
  2024-01-02 18:04 ` doko at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: doko at gcc dot gnu.org @ 2024-01-02 16:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Matthias Klose <doko at gcc dot gnu.org> ---
the ICE goes away, if I also build the conntrack.o object file with -fPIC

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

* [Bug lto/113197] [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
  2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
  2024-01-02 16:13 ` [Bug lto/113197] " doko at gcc dot gnu.org
  2024-01-02 16:20 ` doko at gcc dot gnu.org
@ 2024-01-02 18:04 ` doko at gcc dot gnu.org
  2024-01-08 14:29 ` [Bug ipa/113197] [14 Regression] " rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: doko at gcc dot gnu.org @ 2024-01-02 18:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Matthias Klose <doko at gcc dot gnu.org> ---
Created attachment 56981
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56981&action=edit
reduced test case

reduced test case, without object files.

the compiler is configured with --enable-pie

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

* [Bug ipa/113197] [14 Regression] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
  2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-01-02 18:04 ` doko at gcc dot gnu.org
@ 2024-01-08 14:29 ` rguenth at gcc dot gnu.org
  2024-01-09 11:45 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-08 14:29 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto, needs-bisection
          Component|lto                         |ipa
   Target Milestone|---                         |14.0
            Summary|[14 Regressiion] ICE in in  |[14 Regression] ICE in in
                   |handle_call_arg, at         |handle_call_arg, at
                   |tree-ssa-structalias.cc:411 |tree-ssa-structalias.cc:411
                   |9                           |9
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Looks like an issue with IPA modref and WPA?

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

* [Bug ipa/113197] [14 Regression] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
  2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-01-08 14:29 ` [Bug ipa/113197] [14 Regression] " rguenth at gcc dot gnu.org
@ 2024-01-09 11:45 ` jakub at gcc dot gnu.org
  2024-01-09 11:46 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-09 11:45 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
From the last reproducer, one doesn't really need any extra libraries.
Just
./cc1 -quiet -Wdate-time -std=gnu99 -W -Wall -Wmissing-prototypes
-Wwrite-strings -Wfloat-equal -Wshadow -Wpointer-arith -Wbad-function-cast
-Wsign-compare -Waggregate-return -Wmissing-declarations -Wredundant-decls
-Wnested-externs -Winline -Wstrict-prototypes -Wundef -Wno-unused-parameter -g
-O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto
-ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection libct_proto_udp.i -fPIC
./cc1 -quiet -Wdate-time -std=gnu99 -W -Wall -Wmissing-prototypes
-Wwrite-strings -Wfloat-equal -Wshadow -Wpointer-arith -Wbad-function-cast
-Wsign-compare -Waggregate-return -Wmissing-declarations -Wredundant-decls
-Wnested-externs -Winline -Wstrict-prototypes -Wundef -Wno-unused-parameter -g
-O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto
-ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection conntrack.i -fpie
./xgcc -B ./ -std=gnu99 -W -Wall -Wmissing-prototypes -Wwrite-strings
-Wfloat-equal -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare
-Waggregate-return -Wmissing-declarations -Wredundant-decls -Wnested-externs
-Winline -Wstrict-prototypes -Wundef -Wno-unused-parameter -g -O2
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto
-ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -Wl,-Bsymbolic-functions -flto=auto
-ffat-lto-objects -Wl,-z -Wl,relro -o conntrack.so conntrack.i
libct_proto_udp.s -v -save-temps
reproduces it.
The ICE is on
4105      /* As an compile time optimization if we make no difference between
4106         direct and indirect accesses make arg transitively closed.
4107         This avoids the need to build indir arg and do everything twice. 
*/
4108      if (((flags & EAF_NO_INDIRECT_CLOBBER) != 0)
4109          == ((flags & EAF_NO_DIRECT_CLOBBER) != 0)
4110          && (((flags & EAF_NO_INDIRECT_READ) != 0)
4111              == ((flags & EAF_NO_DIRECT_READ) != 0))
4112          && (((flags & EAF_NO_INDIRECT_ESCAPE) != 0)
4113              == ((flags & EAF_NO_DIRECT_ESCAPE) != 0))
4114          && (((flags & EAF_NOT_RETURNED_INDIRECTLY) != 0)
4115              == ((flags & EAF_NOT_RETURNED_DIRECTLY) != 0)))
4116        {
4117          make_transitive_closure_constraints (tem);
4118          callarg_transitive = true;
4119          gcc_checking_assert (!(flags & EAF_NO_DIRECT_READ));
4120        }

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

* [Bug ipa/113197] [14 Regression] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
  2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2024-01-09 11:45 ` jakub at gcc dot gnu.org
@ 2024-01-09 11:46 ` jakub at gcc dot gnu.org
  2024-01-09 12:13 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-09 11:46 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
   Last reconfirmed|                            |2024-01-09
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Our bisect seed can't bisect lto though...

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

* [Bug ipa/113197] [14 Regression] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
  2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2024-01-09 11:46 ` jakub at gcc dot gnu.org
@ 2024-01-09 12:13 ` rguenth at gcc dot gnu.org
  2024-01-10 13:43 ` jamborm at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-09 12:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #6)
> Our bisect seed can't bisect lto though...

Honza added this stuff.

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

* [Bug ipa/113197] [14 Regression] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
  2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2024-01-09 12:13 ` rguenth at gcc dot gnu.org
@ 2024-01-10 13:43 ` jamborm at gcc dot gnu.org
  2024-01-11  2:23 ` [Bug ipa/113197] [12/13/14 " pinskia at gcc dot gnu.org
  2024-01-11  8:13 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu.org @ 2024-01-10 13:43 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Jambor <jamborm at gcc dot gnu.org> changed:

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

--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Indeed this (the reduced testcase from comment #3) can be bisected to Honza's
r12-5177-g494bdadf28d0fb (Enable pure-const discovery in modref).

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

* [Bug ipa/113197] [12/13/14 Regression] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
  2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2024-01-10 13:43 ` jamborm at gcc dot gnu.org
@ 2024-01-11  2:23 ` pinskia at gcc dot gnu.org
  2024-01-11  8:13 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-11  2:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug ipa/113197] [12/13/14 Regression] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119
  2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2024-01-11  2:23 ` [Bug ipa/113197] [12/13/14 " pinskia at gcc dot gnu.org
@ 2024-01-11  8:13 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-11  8:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

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

end of thread, other threads:[~2024-01-11  8:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-02 11:02 [Bug lto/113197] New: [14 Regressiion] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 doko at gcc dot gnu.org
2024-01-02 16:13 ` [Bug lto/113197] " doko at gcc dot gnu.org
2024-01-02 16:20 ` doko at gcc dot gnu.org
2024-01-02 18:04 ` doko at gcc dot gnu.org
2024-01-08 14:29 ` [Bug ipa/113197] [14 Regression] " rguenth at gcc dot gnu.org
2024-01-09 11:45 ` jakub at gcc dot gnu.org
2024-01-09 11:46 ` jakub at gcc dot gnu.org
2024-01-09 12:13 ` rguenth at gcc dot gnu.org
2024-01-10 13:43 ` jamborm at gcc dot gnu.org
2024-01-11  2:23 ` [Bug ipa/113197] [12/13/14 " pinskia at gcc dot gnu.org
2024-01-11  8:13 ` rguenth 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).