]> git.ipfire.org Git - thirdparty/gcc.git/commit
godump.c (struct macro_hash_value): Define.
authorIan Lance Taylor <iant@google.com>
Wed, 2 Nov 2011 05:04:42 +0000 (05:04 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 2 Nov 2011 05:04:42 +0000 (05:04 +0000)
commit5743331e9d1e1168cab132e2021cfef4d91c3c0f
treea8945039b52fc173fcbdf531d5cfd5b326aeef8e
parent1834883a343cb330ff22005cb078b12d1d94f2de
godump.c (struct macro_hash_value): Define.

* godump.c (struct macro_hash_value): Define.
(macro_hash_hashval): New static function.
(macro_hash_eq, macro_hash_del): New static functions.
(go_define): Use macro_hash_value to store values in macro_hash.
Replace an old value on a redefinition.  Don't print anything to
go_dump_file.
(go_undef): Delete the entry from the hash table.
(go_output_typedef): For an enum, use macro_hash_value, and don't
print anything to go_dump_file.
(go_print_macro): New static function.
(go_finish): Traverse macro_hash with go_print_macro.
(dump_go_spec_init): Update macro_hash creation for
macro_hash_value.

From-SVN: r180762
gcc/ChangeLog
gcc/godump.c