OSDN Git Service

* godump.c (go_format_type): Correct length of name added to
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 May 2011 05:34:45 +0000 (05:34 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 May 2011 05:34:45 +0000 (05:34 +0000)
obstack for anonymous field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174465 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/godump.c

index 0e97381..c2fa9bb 100644 (file)
@@ -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
index e0d50b5..3f78eea 100644 (file)
@@ -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++;