symtab.c (dump_symtab_base): Use TREE_STRING_POINTER for dumping DECL_SECTION_NAME.

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

	* symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
	for dumping DECL_SECTION_NAME.

From-SVN: r186594
This commit is contained in:
Richard Guenther 2012-04-19 13:35:10 +00:00 committed by Richard Biener
parent 314b662a3a
commit f68c04877c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-04-19 Richard Guenther <rguenther@suse.de>
* symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
for dumping DECL_SECTION_NAME.
2012-04-19 Michael Matz <matz@suse.de>
PR middle-end/52977

View File

@ -402,7 +402,7 @@ dump_symtab_base (FILE *f, symtab_node node)
fprintf (f, " one_only");
if (DECL_SECTION_NAME (node->symbol.decl))
fprintf (f, " section_name:%s",
IDENTIFIER_POINTER (DECL_SECTION_NAME (node->symbol.decl)));
TREE_STRING_POINTER (DECL_SECTION_NAME (node->symbol.decl)));
if (DECL_VISIBILITY_SPECIFIED (node->symbol.decl))
fprintf (f, " visibility_specified");
if (DECL_VISIBILITY (node->symbol.decl))