diff mbox

Fix symtab dumping

Message ID Pine.LNX.4.64.1204191534190.23071@jbgna.fhfr.qr
State New
Headers show

Commit Message

Richard Biener April 19, 2012, 1:34 p.m. UTC
Committed as obvious.

Richard.

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

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

Patch

Index: gcc/symtab.c
===================================================================
--- gcc/symtab.c	(revision 186591)
+++ gcc/symtab.c	(working copy)
@@ -402,7 +402,7 @@  dump_symtab_base (FILE *f, symtab_node n
     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))