From 5686a6b7a67691dcbe5bd669f826f5ce09dd9fc2 Mon Sep 17 00:00:00 2001 From: Nikhil Benesch Date: Tue, 15 Jan 2019 23:54:37 +0000 Subject: godump.c (go_output_typedef): When outputting a typedef... gcc/: * godump.c (go_output_typedef): When outputting a typedef, refer to the underlying type by its name and not its structure. gcc/testsuite: * gcc.misc-tests/godump-1.c: Add test case for typedef before struct. From-SVN: r267958 --- gcc/godump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/godump.c') diff --git a/gcc/godump.c b/gcc/godump.c index 17390b8..617a9648 100644 --- a/gcc/godump.c +++ b/gcc/godump.c @@ -1181,7 +1181,7 @@ go_output_typedef (struct godump_container *container, tree decl) return; *slot = CONST_CAST (void *, (const void *) type); - if (!go_format_type (container, TREE_TYPE (decl), false, false, NULL, + if (!go_format_type (container, TREE_TYPE (decl), true, false, NULL, false)) { fprintf (go_dump_file, "// "); -- cgit v1.1