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 <[email protected]>
* 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++;