diff options
author | Nikhil Benesch <nikhil.benesch@gmail.com> | 2019-01-15 23:54:37 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-01-15 23:54:37 +0000 |
commit | 5686a6b7a67691dcbe5bd669f826f5ce09dd9fc2 (patch) | |
tree | 798d1a4753896287ebe7d1578be8232ee6b35293 /gcc/godump.c | |
parent | 1abb44f863d32ef738d28144d2c984603e27721a (diff) | |
download | gcc-5686a6b7a67691dcbe5bd669f826f5ce09dd9fc2.zip gcc-5686a6b7a67691dcbe5bd669f826f5ce09dd9fc2.tar.gz gcc-5686a6b7a67691dcbe5bd669f826f5ce09dd9fc2.tar.bz2 |
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
Diffstat (limited to 'gcc/godump.c')
-rw-r--r-- | gcc/godump.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, "// "); |