OSDN Git Service

* godump.c (struct macro_hash_value): Define.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Nov 2011 05:04:42 +0000 (05:04 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Nov 2011 05:04:42 +0000 (05:04 +0000)
commit62aab49349bbe3e06c457bbfe319bc3f753062b4
treea8945039b52fc173fcbdf531d5cfd5b326aeef8e
parentb625e58b5b96394f5fc9fa7da1c7609b403921be
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180762 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/godump.c