-fgo-dump-spec: skip typedefs that match struct tag
authorNikhil Benesch <nikhil.benesch@gmail.com>
Mon, 14 Dec 2020 07:37:11 +0000 (23:37 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 14 Dec 2020 07:39:32 +0000 (23:39 -0800)
commit0df5fa66b668795d65cdc45c8a5c8969fd56d1b9
tree3ba2b5eef812246e4289bfb94e8df29ed27831c0
parent8e56e4d9566ce99707befa88bf4d11c74ec45c10
-fgo-dump-spec: skip typedefs that match struct tag

gcc/:
* godump.c (go_output_typedef): Suppress typedefs whose name
matches the tag of the underlying struct, union, or enum.
Output declarations for enums that do not appear in typedefs.
gcc/testsuite:
* gcc.misc-tests/godump-1.c: Add test cases.
gcc/godump.c
gcc/testsuite/gcc.misc-tests/godump-1.c