public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/95572] New: lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:370
@ 2020-06-08 7:45 sujian.liu at huawei dot com
2020-06-08 14:34 ` [Bug lto/95572] " marxin at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: sujian.liu at huawei dot com @ 2020-06-08 7:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95572
Bug ID: 95572
Summary: lto1: internal compiler error: in lto_input_tree_ref,
at lto-streamer-in.c:370
Product: gcc
Version: lto
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: sujian.liu at huawei dot com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
Created attachment 48700
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48700&action=edit
Test case
The version used by GCC is 7.3.0.
Only under the O0 option, ICE will appear, and O1+ will not report an error.
When I use the riscv compiler,the following ICE will be reported:
riscv32-unknown-elf-gcc vla-16.c -lm -o ./vla-16.exe -flto
In function 'f5':
lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:370
0x55b22e6f8b48 ???
../sysdeps/x86_64/start.S:108
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: riscv32-unknown-elf-gcc returned 1 exit status
compilation terminated.
/home/lsj/0608/hcc_riscv32/bin/../lib/gcc/riscv32-unknown-elf/7.3.0/../../../../riscv32-unknown-elf/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
=============================================================================
When I use the x86_64-linux-gnu compiler,the following ICE will be reported:
gcc vla-16.c -lm -o ./vla-16.exe -flto
In function ‘f3’:
lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:370
0x8431e8 lto_input_tree_ref(lto_input_block*, data_in*, function*, LTO_tags)
../../gcc/lto-streamer-in.c:370
0x84337d lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int)
../../gcc/lto-streamer-in.c:1446
0x84363b lto_input_tree(lto_input_block*, data_in*)
../../gcc/lto-streamer-in.c:1492
0xaf96c5 lto_input_ts_exp_tree_pointers
../../gcc/tree-streamer-in.c:895
0xaf96c5 streamer_read_tree_body(lto_input_block*, data_in*, tree_node*)
../../gcc/tree-streamer-in.c:1081
0x842caf lto_read_tree_1
../../gcc/lto-streamer-in.c:1333
0x8433c7 lto_read_tree
../../gcc/lto-streamer-in.c:1363
0x8433c7 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int)
../../gcc/lto-streamer-in.c:1475
0x8435b2 lto_input_scc(lto_input_block*, data_in*, unsigned int*, unsigned
int*)
../../gcc/lto-streamer-in.c:1387
0x843614 lto_input_tree(lto_input_block*, data_in*)
../../gcc/lto-streamer-in.c:1490
0x8443a9 input_struct_function_base
../../gcc/lto-streamer-in.c:987
0x8443a9 input_function
../../gcc/lto-streamer-in.c:1061
0x8443a9 lto_read_body_or_constructor
../../gcc/lto-streamer-in.c:1259
0x6213f4 cgraph_node::get_untransformed_body()
../../gcc/cgraph.c:3620
0x62b47e cgraph_node::expand()
../../gcc/cgraphunit.c:2012
0x62c0c7 output_in_order
../../gcc/cgraphunit.c:2285
0x62c4f3 symbol_table::compile()
../../gcc/cgraphunit.c:2530
0x5b8ac4 lto_main()
../../gcc/lto/lto.c:3334
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Attachment provides the test case.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/95572] lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:370
2020-06-08 7:45 [Bug lto/95572] New: lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:370 sujian.liu at huawei dot com
@ 2020-06-08 14:34 ` marxin at gcc dot gnu.org
2020-06-09 1:29 ` sujian.liu at huawei dot com
2020-06-09 8:32 ` marxin at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-08 14:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95572
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2020-06-08
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Hello.
GCC 7.x is out of support, can you please test a newer release, ideally GCC
10.1 release?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/95572] lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:370
2020-06-08 7:45 [Bug lto/95572] New: lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:370 sujian.liu at huawei dot com
2020-06-08 14:34 ` [Bug lto/95572] " marxin at gcc dot gnu.org
@ 2020-06-09 1:29 ` sujian.liu at huawei dot com
2020-06-09 8:32 ` marxin at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: sujian.liu at huawei dot com @ 2020-06-09 1:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95572
--- Comment #2 from sujian.liu at huawei dot com ---
(In reply to Martin Liška from comment #1)
> Hello.
> GCC 7.x is out of support, can you please test a newer release, ideally GCC
> 10.1 release?
I tried to compile with GCC 8.2.0, but no errors were reported.
For LTO, is there a lot of changes between GCC 8.x and GCC 7.x ? What I read in
the changelog is just adding the debug infos. Did I overlook any changes of
details ?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/95572] lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:370
2020-06-08 7:45 [Bug lto/95572] New: lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:370 sujian.liu at huawei dot com
2020-06-08 14:34 ` [Bug lto/95572] " marxin at gcc dot gnu.org
2020-06-09 1:29 ` sujian.liu at huawei dot com
@ 2020-06-09 8:32 ` marxin at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-09 8:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95572
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|WAITING |RESOLVED
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to liusujian from comment #2)
> (In reply to Martin Liška from comment #1)
> > Hello.
> > GCC 7.x is out of support, can you please test a newer release, ideally GCC
> > 10.1 release?
>
> I tried to compile with GCC 8.2.0, but no errors were reported.
Good!
> For LTO, is there a lot of changes between GCC 8.x and GCC 7.x ?
We always make a lot of changes to LTO in between releases. It's quite actively
developed area of the GCC.
> in the changelog is just adding the debug infos. Did I overlook any changes
> of details ?
Please use a supported version of the compiler.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-06-09 8:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 7:45 [Bug lto/95572] New: lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:370 sujian.liu at huawei dot com
2020-06-08 14:34 ` [Bug lto/95572] " marxin at gcc dot gnu.org
2020-06-09 1:29 ` sujian.liu at huawei dot com
2020-06-09 8:32 ` marxin 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).