[PATCH] -fdump-go-spec mishandles typedefs that precede the definition of their underlying type

Ian Lance Taylor iant@golang.org
Tue Jan 15 23:55:00 GMT 2019


On Fri, Nov 23, 2018 at 1:18 PM Nikhil Benesch <nikhil.benesch@gmail.com> wrote:
>
> 2018-11-22  Nikhil Benesch  <nikhil.benesch@gmail.com>
>
>         * gcc/godump.c (go_output_typedef): When outputting a typedef, use
>         the refer to the underlying type by its name and not its structure.
>         This is necessary when the typedef occurs before the definition of
>         an element of the underlying type.
>         * gcc.misc-tests/godump-1.c: Add test cases for the new behavior.

Thanks.

Committed to mainline.

Ian



More information about the Gcc-patches mailing list