Patch committed: Don't confuse -fdump-go-spec with tag/var name
Ian Lance Taylor
iant@google.com
Tue Jan 11 23:37:00 GMT 2011
In C you can have a struct tag and a variable with the same name. The
-fdump-go-spec option dumps a struct tag as a type name, but Go does not
permit a type and a variable to have the same name. This patch avoids
the most common case of this problem by not emitting a variable if it
has already seen a type with the same name. Bootstrapped and ran Go
testsuite on x86_64-unknown-linux-gnu. Committed to mainline.
Ian
2011-01-11 Ian Lance Taylor <iant@google.com>
* godump.c (go_output_var): Don't output the variable if there is
already a type with the same name.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 1171 bytes
Desc: godump
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110111/90977024/attachment.bin>
More information about the Gcc-patches
mailing list