aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-04-19 13:04:57 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-04-19 13:04:57 +0000
commitd39132ea9b9d1a740bfc169326020fc28d78ba81 (patch)
treef30df465089719f0701bf423def34ac4666e3877 /gcc/tree.c
parentff7037dca85dfd00c909950750137edae9963e12 (diff)
downloadgcc-d39132ea9b9d1a740bfc169326020fc28d78ba81.zip
gcc-d39132ea9b9d1a740bfc169326020fc28d78ba81.tar.gz
gcc-d39132ea9b9d1a740bfc169326020fc28d78ba81.tar.bz2
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
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 57e8e68..d0c18b1 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5176,7 +5176,12 @@ free_lang_data (void)
lang_hooks.callgraph.analyze_expr = NULL;
lang_hooks.dwarf_name = lhd_dwarf_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. */
diagnostic_starter (global_dc) = default_tree_diagnostic_starter;