public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/46559] New: libstdc++ link FAILs with -flto
@ 2010-11-19 13:01 rguenth at gcc dot gnu.org
2010-11-26 15:30 ` [Bug middle-end/46559] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-19 13:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46559
Summary: libstdc++ link FAILs with -flto
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: lto
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rguenth@gcc.gnu.org
make -k check-target-libstdc++-v3 RUNTESTFLAGS="--target_board=unix/-flto"
yields
FAIL: 27_io/basic_filebuf/close/12790-1.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/close/12790-1.cc compilation failed to produce
exec
utable
FAIL: 27_io/basic_filebuf/cons/2020.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/cons/2020.cc compilation failed to produce
executab
le
FAIL: 27_io/basic_filebuf/open/12790-1.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/open/12790-1.cc compilation failed to produce
execu
table
FAIL: 27_io/basic_filebuf/seekoff/10132-2.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/seekoff/10132-2.cc compilation failed to produce
ex
ecutable
FAIL: 27_io/basic_filebuf/seekoff/12790-1.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/seekoff/12790-1.cc compilation failed to produce
ex
ecutable
FAIL: 27_io/basic_filebuf/seekoff/12790-2.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/seekoff/12790-2.cc compilation failed to produce
ex
ecutable
FAIL: 27_io/basic_filebuf/seekoff/12790-3.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/seekpos/10132-3.cc compilation failed to produce
ex
ecutable
FAIL: 27_io/basic_filebuf/seekpos/12790-2.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/seekpos/12790-2.cc compilation failed to produce
ex
ecutable
FAIL: 27_io/basic_fstream/cons/1.cc (test for excess errors)
WARNING: 27_io/basic_fstream/cons/1.cc compilation failed to produce executable
FAIL: 27_io/basic_ifstream/cons/2020.cc (test for excess errors)
WARNING: 27_io/basic_ifstream/cons/2020.cc compilation failed to produce
executa
ble
FAIL: 27_io/basic_ofstream/cons/2020.cc (test for excess errors)
WARNING: 27_io/basic_ofstream/cons/2020.cc compilation failed to produce
executa
ble
FAIL: ext/enc_filebuf/char/13189.cc (test for excess errors)
WARNING: ext/enc_filebuf/char/13189.cc compilation failed to produce executable
FAIL: ext/enc_filebuf/char/13598.cc (test for excess errors)
WARNING: ext/enc_filebuf/char/13598.cc compilation failed to produce executable
FAIL: ext/enc_filebuf/wchar_t/13189.cc (test for excess errors)
WARNING: ext/enc_filebuf/wchar_t/13189.cc compilation failed to produce
executab
le
all with excess errors of the form
FAIL: 27_io/basic_filebuf/seekoff/12790-1.cc (test for excess errors)
Excess errors:
/tmp/ccXujZVx.ltrans0.ltrans.o:(.debug_info+0x1153): undefined reference to
`.LLST0'
/tmp/ccXujZVx.ltrans0.ltrans.o:(.debug_info+0x1169): undefined reference to
`.LLST1'
/tmp/ccXujZVx.ltrans0.ltrans.o:(.debug_info+0x126b): undefined reference to
`.LLST2'
/tmp/ccXujZVx.ltrans0.ltrans.o:(.debug_info+0x127c): undefined reference to
`.LLST3'
/tmp/ccXujZVx.ltrans0.ltrans.o:(.debug_info+0x129d): undefined reference to
`.LLST4'
...
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/46559] libstdc++ link FAILs with -flto
2010-11-19 13:01 [Bug middle-end/46559] New: libstdc++ link FAILs with -flto rguenth at gcc dot gnu.org
@ 2010-11-26 15:30 ` rguenth at gcc dot gnu.org
2010-11-26 16:13 ` rguenth at gcc dot gnu.org
2010-11-26 16:14 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-26 15:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46559
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-26 15:09:34 UTC ---
The FAILs also occur with -flto-partition=none.
Hm, looking at 27_io/basic_filebuf/underflow/10096.cc there are no location
lists at all in the LTO assembler:
.section .debug_loc,"",@progbits
.Ldebug_loc0:
dwarf2out.c:output_loc_list is never called, add_AT_loc_list is, so is
output_location_lists.
But the local var 'die' that is refered is the last in the limbo_die_list.
Do we expect this magically to be comp_unit_die? For the testcase
in question it is a DW_TAG_structure_type. With multiple comp-unit dies
as we now can have with LTO do we need to iterate through them for
the remaining parts of dwarf2out after limbo-die processing?
Well.
Index: dwarf2out.c
===================================================================
--- dwarf2out.c (revision 167177)
+++ dwarf2out.c (working copy)
@@ -23177,7 +23176,7 @@ dwarf2out_finish (const char *filename)
add_AT_macptr (comp_unit_die (), DW_AT_macro_info, macinfo_section_label);
if (have_location_lists)
- optimize_location_lists (die);
+ optimize_location_lists (comp_unit_die ());
/* Output all of the compilation units. We put the main one last so that
the offsets are available to output_pubnames. */
@@ -23222,7 +23221,7 @@ dwarf2out_finish (const char *filename)
ASM_GENERATE_INTERNAL_LABEL (loc_section_label,
DEBUG_LOC_SECTION_LABEL, 0);
ASM_OUTPUT_LABEL (asm_out_file, loc_section_label);
- output_location_lists (die);
+ output_location_lists (comp_unit_die ());
}
/* Output public names table if necessary. */
fixes this bug and makes sense anyway.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/46559] libstdc++ link FAILs with -flto
2010-11-19 13:01 [Bug middle-end/46559] New: libstdc++ link FAILs with -flto rguenth at gcc dot gnu.org
2010-11-26 15:30 ` [Bug middle-end/46559] " rguenth at gcc dot gnu.org
@ 2010-11-26 16:13 ` rguenth at gcc dot gnu.org
2010-11-26 16:14 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-26 16:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46559
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-26 16:01:33 UTC ---
Author: rguenth
Date: Fri Nov 26 16:01:26 2010
New Revision: 167181
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167181
Log:
2010-11-26 Richard Guenther <rguenther@suse.de>
PR middle-end/46559
* dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
for location list processing.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/46559] libstdc++ link FAILs with -flto
2010-11-19 13:01 [Bug middle-end/46559] New: libstdc++ link FAILs with -flto rguenth at gcc dot gnu.org
2010-11-26 15:30 ` [Bug middle-end/46559] " rguenth at gcc dot gnu.org
2010-11-26 16:13 ` rguenth at gcc dot gnu.org
@ 2010-11-26 16:14 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-26 16:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46559
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-26 16:01:47 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-26 16:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-19 13:01 [Bug middle-end/46559] New: libstdc++ link FAILs with -flto rguenth at gcc dot gnu.org
2010-11-26 15:30 ` [Bug middle-end/46559] " rguenth at gcc dot gnu.org
2010-11-26 16:13 ` rguenth at gcc dot gnu.org
2010-11-26 16:14 ` 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).