This patch fixes -fdump-go-spec to work correctly when the same name is defined as both a preprocessor macro and an enum constant. This actually happens with glibc with the name IPPORT_RESERVED. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian 2011-05-20 Ian Lance Taylor * godump.c (go_output_typedef): Put enum constants in the macro hash table to avoid duplicate Go const definitions.