From: Ian Lance Taylor Date: Tue, 31 May 2011 05:34:45 +0000 (+0000) Subject: godump.c (go_format_type): Correct length of name added to obstack for anonymous... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a880d5d959393d81125b801d11b30843964d7f9;p=gcc.git godump.c (go_format_type): Correct length of name added to obstack for anonymous field. * godump.c (go_format_type): Correct length of name added to obstack for anonymous field. From-SVN: r174465 --- 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 + + * godump.c (go_format_type): Correct length of name added to + obstack for anonymous field. + 2011-05-30 Kaz Kojima 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++;