This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/62026] [5 Regression] Crash in lto_get_decl_name_mapping
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Oct 2014 17:00:15 +0000
- Subject: [Bug lto/62026] [5 Regression] Crash in lto_get_decl_name_mapping
- Auto-submitted: auto-generated
- References: <bug-62026-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62026
--- Comment #17 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Here's a new testcase that fails on ppc64 even with the patch from comment 15
applied to trunk.
trippels@gcc1-power7 genrb % cat timezone.ii
class UnicodeString
{
public:
void m_fn1 ();
} a;
void
fn1 ()
{
static int b = 0;
a.m_fn1 ();
}
trippels@gcc1-power7 genrb % /home/trippels/gcc_test/usr/local/bin/c++ -flto=32
-ffunction-sections -fdata-sections -std=gnu++0x -g -O2 -r -nostdlib
timezone.ii
lto1: internal compiler error: Segmentation fault
0x1063d46b crash_signal
../../gcc/gcc/toplev.c:340
0x104ed8c4 lto_get_decl_name_mapping(lto_file_decl_data*, char const*)
../../gcc/gcc/lto-section-in.c:340
0x1098f447 varpool_node::get_constructor()
../../gcc/gcc/varpool.c:280
0x1098f447 varpool_node::get_constructor()
../../gcc/gcc/varpool.c:264
0x10981c4f get_variable_section(tree_node*, bool)
../../gcc/gcc/varasm.c:1121
0x10983ae3 get_block_for_decl
../../gcc/gcc/varasm.c:1194
0x1098663b make_decl_rtl(tree_node*)
../../gcc/gcc/varasm.c:1419
0x10989f43 make_decl_rtl_for_debug(tree_node*)
../../gcc/gcc/varasm.c:1467
0x102523f7 rtl_for_decl_location
../../gcc/gcc/dwarf2out.c:15760
0x102871e7 loc_list_from_tree
../../gcc/gcc/dwarf2out.c:14391
0x1028dc13 add_location_or_const_value_attribute
../../gcc/gcc/dwarf2out.c:15892
0x1028dc13 add_location_or_const_value_attribute
../../gcc/gcc/dwarf2out.c:15836
0x10297707 dwarf2out_finish
../../gcc/gcc/dwarf2out.c:24243
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [/home/trippels/tmp/ccC9suVr.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/home/trippels/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status