godump.c (go_output_typedef): When outputting a typedef...
authorNikhil Benesch <nikhil.benesch@gmail.com>
Tue, 15 Jan 2019 23:54:37 +0000 (23:54 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 15 Jan 2019 23:54:37 +0000 (23:54 +0000)
commit5686a6b7a67691dcbe5bd669f826f5ce09dd9fc2
tree798d1a4753896287ebe7d1578be8232ee6b35293
parent1abb44f863d32ef738d28144d2c984603e27721a
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/ChangeLog
gcc/godump.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.misc-tests/godump-1.c