public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/97133] New: [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams
@ 2020-09-21 4:59 asolokha at gmx dot com
2020-09-21 7:01 ` [Bug ipa/97133] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: asolokha at gmx dot com @ 2020-09-21 4:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97133
Bug ID: 97133
Summary: [11 Regression] ICE: tree code 'bind_expr' is not
supported in LTO streams
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
gcc-11.0.0-alpha20200920 snapshot (g:363e7755f227656684c8e284307ceee451503ca4)
ICEs when compiling gcc/testsuite/gcc.dg/pr88701.c w/ -flto:
% gcc-11.0.0 -flto -c gcc/testsuite/gcc.dg/pr88701.c
during IPA pass: modref
gcc/testsuite/gcc.dg/pr88701.c:18:1: internal compiler error: tree code
'bind_expr' is not supported in LTO streams
18 | }
| ^
0xc3d22c lto_write_tree
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/lto-streamer-out.c:554
0xc3d22c lto_output_tree_1
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/lto-streamer-out.c:592
0xc45b49 DFS::DFS(output_block*, tree_node*, bool, bool, bool)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/lto-streamer-out.c:892
0xc46b30 lto_output_tree(output_block*, tree_node*, bool, bool)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/lto-streamer-out.c:1853
0xc47d7d streamer_write_chain
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/lto-streamer-out.c:2370
0xc47d7d output_function
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/lto-streamer-out.c:2408
0xc47d7d lto_output()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/lto-streamer-out.c:2792
0xcc6611 write_lto
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/passes.c:2621
0xcc6611 ipa_write_summaries_1
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/passes.c:2685
0xcc6611 ipa_write_summaries()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/passes.c:2740
0x96616d ipa_passes
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/cgraphunit.c:2689
0x96616d symbol_table::compile()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/cgraphunit.c:2776
0x968222 symbol_table::compile()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/cgraphunit.c:2756
0x968222 symbol_table::finalize_compilation_unit()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200920/work/gcc-11-20200920/gcc/cgraphunit.c:3021
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ipa/97133] [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams
2020-09-21 4:59 [Bug lto/97133] New: [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams asolokha at gmx dot com
@ 2020-09-21 7:01 ` rguenth at gcc dot gnu.org
2020-09-24 5:26 ` asolokha at gmx dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-21 7:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97133
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|lto |ipa
CC| |hubicka at gcc dot gnu.org
Target Milestone|--- |11.0
Last reconfirmed| |2020-09-21
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. Not sure why modref runs at -O0 at all.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ipa/97133] [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams
2020-09-21 4:59 [Bug lto/97133] New: [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams asolokha at gmx dot com
2020-09-21 7:01 ` [Bug ipa/97133] " rguenth at gcc dot gnu.org
@ 2020-09-24 5:26 ` asolokha at gmx dot com
2020-10-01 14:01 ` hubicka at gcc dot gnu.org
2020-10-01 15:36 ` [Bug lto/97133] " msebor at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: asolokha at gmx dot com @ 2020-09-24 5:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97133
--- Comment #2 from Arseny Solokha <asolokha at gmx dot com> ---
Likely a duplicate of PR97172.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ipa/97133] [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams
2020-09-21 4:59 [Bug lto/97133] New: [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams asolokha at gmx dot com
2020-09-21 7:01 ` [Bug ipa/97133] " rguenth at gcc dot gnu.org
2020-09-24 5:26 ` asolokha at gmx dot com
@ 2020-10-01 14:01 ` hubicka at gcc dot gnu.org
2020-10-01 15:36 ` [Bug lto/97133] " msebor at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: hubicka at gcc dot gnu.org @ 2020-10-01 14:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97133
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
modref is a stale infoa (streaming happens after running the ipa passes and
moref is last). It is Maritn Sebor's change.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/97133] [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams
2020-09-21 4:59 [Bug lto/97133] New: [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams asolokha at gmx dot com
` (2 preceding siblings ...)
2020-10-01 14:01 ` hubicka at gcc dot gnu.org
@ 2020-10-01 15:36 ` msebor at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-10-01 15:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97133
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
Component|ipa |lto
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
This is the same ICE as in PR97172:
static void
lto_write_tree (struct output_block *ob, tree expr, bool ref_p)
{
if (!lto_is_streamable (expr))
internal_error ("tree code %qs is not supported in LTO streams",
get_tree_code_name (TREE_CODE (expr)));
and EXPR is BIND_EXPR. It's emitted by the C front end for the VLA parameter
in the definition of
int
qux (int n, int a[(int (*)[n]) { 0 } == 0])
like so:
<parm_decl 0x7fffea94c280 a
type <pointer_type 0x7fffea8189d8
type <integer_type 0x7fffea8105e8 int public SI
size <integer_cst 0x7fffea7f7f18 constant 32>
unit-size <integer_cst 0x7fffea7f7f30 constant 4>
align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7fffea8105e8 precision:32 min <integer_cst 0x7fffea7f7ed0 -2147483648> max
<integer_cst 0x7fffea7f7ee8 2147483647>
pointer_to_this <pointer_type 0x7fffea8189d8>>
public unsigned DI
size <integer_cst 0x7fffea7f7cd8 constant 64>
unit-size <integer_cst 0x7fffea7f7cf0 constant 8>
align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7fffea8189d8>
used unsigned read decl_0 DI
/src/gcc/master/gcc/testsuite/gcc.dg/pr88701.c:15:17 size <integer_cst
0x7fffea7f7cd8 64> unit-size <integer_cst 0x7fffea7f7cf0 8>
align:64 warn_if_not_align:0 context <function_decl 0x7fffea928a00 qux>
attributes <tree_list 0x7fffea94d8e8
purpose <identifier_node 0x7fffea937910 arg spec>
value <tree_list 0x7fffea94d898
value <string_cst 0x7fffea936860 constant "[$]\000">
chain <tree_list 0x7fffea94d870
value <eq_expr 0x7fffea94d758 type <integer_type 0x7fffea8105e8
int>
side-effects
arg:0 <c_maybe_const_expr 0x7fffea94d730 type <pointer_type
0x7fffea930c78>
side-effects
arg:0 <compound_expr 0x7fffea94d708 type <void_type
0x7fffea810f18 void>
side-effects arg:1 <bind_expr 0x7fffea949330>>
arg:1 <compound_literal_expr 0x7fffea936780 type
<pointer_type 0x7fffea930c78>
side-effects arg:0 <decl_expr 0x7fffea936760>>>
arg:1 <integer_cst 0x7fffea94f030 constant 0>
/src/gcc/master/gcc/testsuite/gcc.dg/pr88701.c:15:38 start:
/src/gcc/master/gcc/testsuite/gcc.dg/pr88701.c:15:32 finish:
/src/gcc/master/gcc/testsuite/gcc.dg/pr88701.c:15:41>>>> arg-type <pointer_type
0x7fffea8189d8>>
lto_is_streamable() is defined to return false for BIND_EXPR (and SSA_NAME)
like so:
/* Return true if EXPR is a tree node that can be written to disk. */
static inline bool
lto_is_streamable (tree expr)
{
enum tree_code code = TREE_CODE (expr);
/* Notice that we reject SSA_NAMEs as well. We only emit the SSA
name version in lto_output_tree_ref (see output_ssa_names). */
return !is_lang_specific (expr)
&& code != SSA_NAME
&& code != LANG_TYPE
&& code != MODIFY_EXPR
&& code != INIT_EXPR
&& code != TARGET_EXPR
&& code != BIND_EXPR
&& code != WITH_CLEANUP_EXPR
&& code != STATEMENT_LIST
&& (code == CASE_LABEL_EXPR
|| code == DECL_EXPR
|| TREE_CODE_CLASS (code) != tcc_statement);
}
*** This bug has been marked as a duplicate of bug 97172 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-10-01 15:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 4:59 [Bug lto/97133] New: [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams asolokha at gmx dot com
2020-09-21 7:01 ` [Bug ipa/97133] " rguenth at gcc dot gnu.org
2020-09-24 5:26 ` asolokha at gmx dot com
2020-10-01 14:01 ` hubicka at gcc dot gnu.org
2020-10-01 15:36 ` [Bug lto/97133] " msebor 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).