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]

Go patch committed: Correct -fdump-go-spec name


This trivial patch corrects the name that -fdump-go-spec uses for an
anonymous field.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian


2011-05-30  Ian Lance Taylor  <iant@google.com>

	* godump.c (go_format_type): Correct length of name added to
	obstack for anonymous field.


Index: gcc/godump.c
===================================================================
--- gcc/godump.c	(revision 174368)
+++ gcc/godump.c	(working copy)
@@ -700,7 +700,7 @@ go_format_type (struct godump_container 
 	      {
 		char buf[100];
 
-		obstack_grow (ob, "Godump_", 2);
+		obstack_grow (ob, "Godump_", 7);
 		snprintf (buf, sizeof buf, "%d", i);
 		obstack_grow (ob, buf, strlen (buf));
 		i++;

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