Commit d8a24b65 by Kai Tietz Committed by Kai Tietz

re PR debug/47209 (ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627)…

re PR debug/47209 (ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627) with -f{no-,}emit-struct-debug-{baseonly,reduced} -g)

2011-01-12  Kai Tietz  <kai.tietz@onevision.com>

	PR debug/47209
	* dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
	of type.

2011-01-12  Kai Tietz  <kai.tietz@onevision.com>

	PR debug/47209
	* g++.dg/debug/pr47209.C: New.

From-SVN: r168718
parent 56e22cab
2011-01-12 Kai Tietz <kai.tietz@onevision.com>
PR debug/47209
* dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
of type.
2011-01-12 Jan Hubicka <jh@suse.cz>
PR driver/47244
......
......@@ -619,7 +619,7 @@ should_emit_struct_debug (tree type, enum debug_info_usage usage)
if (criterion == DINFO_STRUCT_FILE_ANY)
return DUMP_GSTRUCT (type, usage, criterion, generic, false, true);
type_decl = TYPE_STUB_DECL (type);
type_decl = TYPE_STUB_DECL (TYPE_MAIN_VARIANT (type));
if (criterion == DINFO_STRUCT_FILE_SYS && DECL_IN_SYSTEM_HEADER (type_decl))
return DUMP_GSTRUCT (type, usage, criterion, generic, false, true);
......
2011-01-12 Kai Tietz <kai.tietz@onevision.com>
PR debug/47209
* g++.dg/debug/pr47209.C: New.
2011-01-12 Richard Guenther <rguenther@suse.de>
PR lto/47259
......
// { dg-do compile }
// { dg-options "-femit-struct-debug-baseonly" }
struct A
{
void foo ();
};
struct B : A
{
typedef const A base;
using base::foo;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment