-fdump-go-spec: ignore type ordering of incomplete types
authorNikhil Benesch <nikhil.benesch@gmail.com>
Thu, 10 Dec 2020 02:46:02 +0000 (18:46 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 10 Dec 2020 02:46:02 +0000 (18:46 -0800)
commit73cf5da233b4cd0f140dd997270e88de63e27db7
tree1d7f5273f95025f950822427d7966a11ccdf0625
parent2fe4f000ad113e44a8d68794013b7c751a3bc05d
-fdump-go-spec: ignore type ordering of incomplete types

gcc/:
* godump.c (go_format_type): Don't consider whether a type has
been seen when determining whether to output a type by name.
Consider only the use_type_name parameter.
(go_output_typedef): When outputting a typedef, format the
declaration's original type, which contains the name of the
underlying type rather than the name of the typedef.
gcc/testsuite:
* gcc.misc-tests/godump-1.c: Add test case.
gcc/godump.c
gcc/testsuite/gcc.misc-tests/godump-1.c