summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/godump.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0e9738198f3..c2fa9bbb5db 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-30 Ian Lance Taylor <iant@google.com>
+
+ * godump.c (go_format_type): Correct length of name added to
+ obstack for anonymous field.
+
2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/49186
diff --git a/gcc/godump.c b/gcc/godump.c
index e0d50b5d1b0..3f78eead279 100644
--- a/gcc/godump.c
+++ b/gcc/godump.c
@@ -700,7 +700,7 @@ go_format_type (struct godump_container *container, tree type,
{
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++;