This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix symtab dumping


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.

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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]