From 5a880d5d959393d81125b801d11b30843964d7f9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 31 May 2011 05:34:45 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/godump.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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++; -- 2.30.2