public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/114043] New: ICE: in write_symbol, at lto-streamer-out.cc:3015 with -O -fstrict-enums -fprofile-generate -flto --param=max-early-inliner-iterations=0
@ 2024-02-22 5:44 zsojka at seznam dot cz
2024-02-22 12:02 ` [Bug lto/114043] " rguenth at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: zsojka at seznam dot cz @ 2024-02-22 5:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114043
Bug ID: 114043
Summary: ICE: in write_symbol, at lto-streamer-out.cc:3015 with
-O -fstrict-enums -fprofile-generate -flto
--param=max-early-inliner-iterations=0
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 57488
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57488&action=edit
auto-reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -fstrict-enums -fprofile-generate -flto
--param=max-early-inliner-iterations=0 script_tile.ii
during IPA pass: modref
script_tile.ii:31:1: internal compiler error: in write_symbol, at
lto-streamer-out.cc:3015
31 | }
| ^
0x8aa345 write_symbol
/repo/gcc-trunk/gcc/lto-streamer-out.cc:3015
0x163b3c4 produce_symtab
/repo/gcc-trunk/gcc/lto-streamer-out.cc:3115
0x163b3c4 produce_asm_for_decls()
/repo/gcc-trunk/gcc/lto-streamer-out.cc:3373
0x16cd612 write_lto
/repo/gcc-trunk/gcc/passes.cc:2782
0x16cd612 ipa_write_summaries_1
/repo/gcc-trunk/gcc/passes.cc:2843
0x16cd612 ipa_write_summaries()
/repo/gcc-trunk/gcc/passes.cc:2899
0x12ccbf2 ipa_passes
/repo/gcc-trunk/gcc/cgraphunit.cc:2262
0x12ccbf2 symbol_table::compile()
/repo/gcc-trunk/gcc/cgraphunit.cc:2335
0x12cf3c7 symbol_table::compile()
/repo/gcc-trunk/gcc/cgraphunit.cc:2315
0x12cf3c7 symbol_table::finalize_compilation_unit()
/repo/gcc-trunk/gcc/cgraphunit.cc:2587
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] 2+ messages in thread
* [Bug lto/114043] ICE: in write_symbol, at lto-streamer-out.cc:3015 with -O -fstrict-enums -fprofile-generate -flto --param=max-early-inliner-iterations=0
2024-02-22 5:44 [Bug lto/114043] New: ICE: in write_symbol, at lto-streamer-out.cc:3015 with -O -fstrict-enums -fprofile-generate -flto --param=max-early-inliner-iterations=0 zsojka at seznam dot cz
@ 2024-02-22 12:02 ` rguenth at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-02-22 12:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114043
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |hubicka at gcc dot gnu.org
Last reconfirmed| |2024-02-22
Status|UNCONFIRMED |NEW
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. Doesn't happen w/o -fstrict-enums (huh).
(gdb) p debug_tree (t)
<function_decl 0x7ffff71c0600 __ct_comp
type <method_type 0x7ffff71bdf18
type <void_type 0x7ffff702ff18 void VOID
align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff702ff18
pointer_to_this <pointer_type 0x7ffff7036000>>
QI
size <integer_cst 0x7ffff70292b8 constant 8>
unit-size <integer_cst 0x7ffff70292d0 constant 1>
align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff71bdf18 method basetype <record_type 0x7ffff71bdbd0 OverflowSafeInt>
arg-types <tree_list 0x7ffff71b7de8 value <pointer_type 0x7ffff71da9d8>
chain <tree_list 0x7ffff71b7dc0 value <integer_type 0x7ffff702f738
long int>
chain <tree_list 0x7ffff7024d98 value <void_type 0x7ffff702ff18
void>>>>
pointer_to_this <pointer_type 0x7ffff71da540>>
addressable used nothrow public static weak autoinline decl_5 QI t.ii:3:3
align:16 warn_if_not_align:0 context <translation_unit_decl 0x7ffff7018168
t.ii> initial <error_mark 0x7ffff70291b0> chain <type_decl 0x7ffff703ec78
OverflowSafeInt>>
that's the OverflowSafeInt(long) {} CTOR. We have cgraph_node::get
(t)->definition == 0.
It might be the --param disables some important cgraph initialization
(edges rebuild?). But not sure where -fstric-enums comes into play.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-22 12:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-22 5:44 [Bug lto/114043] New: ICE: in write_symbol, at lto-streamer-out.cc:3015 with -O -fstrict-enums -fprofile-generate -flto --param=max-early-inliner-iterations=0 zsojka at seznam dot cz
2024-02-22 12:02 ` [Bug lto/114043] " 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).