Commit d39132ea by Richard Guenther Committed by Richard Biener

re PR debug/48207 (ICE in lhd_set_decl_assembler_name, at langhooks.c:158)

2011-04-19  Richard Guenther  <rguenther@suse.de>

	PR lto/48207
	* tree.c (free_lang_data): Do not reset the decl-assembler-name
	langhook.

	* g++.dg/lto/pr48207_0.C: New testcase.

From-SVN: r172708
parent ff7037dc
2011-04-19 Richard Guenther <rguenther@suse.de>
PR lto/48207
* tree.c (free_lang_data): Do not reset the decl-assembler-name
langhook.
2011-04-19 Eric Botcazou <ebotcazou@adacore.com> 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
* tree-inline.c (expand_call_inline): Do not issue a -Winline warning * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
......
2011-04-19 Richard Guenther <rguenther@suse.de>
PR lto/48207
* g++.dg/lto/pr48207_0.C: New testcase.
2011-04-18 Jason Merrill <jason@redhat.com> 2011-04-18 Jason Merrill <jason@redhat.com>
* g++.dg/init/void1.C: New. * g++.dg/init/void1.C: New.
......
// { dg-lto-do link }
// { dg-lto-options { { -flto -g } } }
void bar(int) {}
void foo(void)
{
typedef enum { ABC } DEF;
DEF a;
bar((int)a);
}
int main() {}
...@@ -5176,7 +5176,12 @@ free_lang_data (void) ...@@ -5176,7 +5176,12 @@ free_lang_data (void)
lang_hooks.callgraph.analyze_expr = NULL; lang_hooks.callgraph.analyze_expr = NULL;
lang_hooks.dwarf_name = lhd_dwarf_name; lang_hooks.dwarf_name = lhd_dwarf_name;
lang_hooks.decl_printable_name = gimple_decl_printable_name; lang_hooks.decl_printable_name = gimple_decl_printable_name;
lang_hooks.set_decl_assembler_name = lhd_set_decl_assembler_name; /* We do not want the default decl_assembler_name implementation,
rather if we have fixed everything we want a wrapper around it
asserting that all non-local symbols already got their assembler
name and only produce assembler names for local symbols. Or rather
make sure we never call decl_assembler_name on local symbols and
devise a separate, middle-end private scheme for it. */
/* Reset diagnostic machinery. */ /* Reset diagnostic machinery. */
diagnostic_starter (global_dc) = default_tree_diagnostic_starter; diagnostic_starter (global_dc) = default_tree_diagnostic_starter;
......
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