From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15073 invoked by alias); 15 Oct 2014 17:00:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15009 invoked by uid 48); 15 Oct 2014 17:00:25 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/62026] [5 Regression] Crash in lto_get_decl_name_mapping Date: Wed, 15 Oct 2014 17:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: ice-on-valid-code, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg01178.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62026 --- Comment #17 from Markus Trippelsdorf --- 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 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