This patch is a consolodation of the hash_table patches to the
authorLawrence Crowl <crowl@google.com>
Thu, 30 May 2013 01:26:05 +0000 (01:26 +0000)
committerLawrence Crowl <crowl@gcc.gnu.org>
Thu, 30 May 2013 01:26:05 +0000 (01:26 +0000)
commit3a4f280bec545db82380fb4cbc704ac7af438585
tree5340933f027915d0e1c1ab4f652bfad732bb71ff
parent4974c14ccc9b0e97afb69aeeb657a29bd35876b0
This patch is a consolodation of the hash_table patches to the
cxx-conversion branch for files under gcc/config.

Update various hash tables from htab_t to hash_table.
Modify types and calls to match.

* config/arm/arm.c'arm_libcall_uses_aapcs_base::libcall_htab

Fold libcall_eq and libcall_hash into new struct libcall_hasher.

* config/ia64/ia64.c'bundle_state_table

Fold bundle_state_hash and bundle_state_eq_p into new struct
bundle_state_hasher.

* config/mips/mips.c'mips_offset_table

Fold mips_lo_sum_offset_hash and mips_lo_sum_offset_eq into new
struct mips_lo_sum_offset_hasher.

In mips_reorg_process_insns, change call to for_each_rtx to pass
a pointer to the hash_table rather than a htab_t.  This change
requires then dereferencing that pointer in mips_record_lo_sum to
obtain the hash_table.

* config/sol2.c'solaris_comdat_htab

Fold comdat_hash and comdat_eq into new struct comdat_entry_hasher.

* config/i386/winnt.c'i386_pe_section_type_flags::htab

* config/i386/winnt.c'i386_find_on_wrapper_list::wrappers

Fold wrapper_strcmp into new struct wrapped_symbol_hasher.

Tested on x86_64.  Tested with config-list.mk.

Index: gcc/ChangeLog

2013-05-29  Lawrence Crowl  <crowl@google.com>

* config/arm/t-arm: Update for below.

* config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
Change type to hash_table.  Update dependent calls and types.

* config/i386/t-cygming: Update for below.

* config/i386/t-interix: Update for below.

* config/i386/winnt.c (i386_pe_section_type_flags::htab):
Change type to hash_table.  Update dependent calls and types.
(i386_find_on_wrapper_list::wrappers): Likewise.

* config/ia64/t-ia64: Update for below.

* config/ia64/ia64.c (bundle_state_table):
Change type to hash_table.  Update dependent calls and types.

* config/mips/mips.c (mips_reorg_process_insns::htab):
Change type to hash_table.  Update dependent calls and types.

* config/sol2.c (solaris_comdat_htab):
Change type to hash_table.  Update dependent calls and types.

* config/t-sol2: Update for above.

From-SVN: r199435
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/t-arm
gcc/config/i386/t-cygming
gcc/config/i386/t-interix
gcc/config/i386/winnt.c
gcc/config/ia64/ia64.c
gcc/config/ia64/t-ia64
gcc/config/mips/mips.c
gcc/config/sol2.c
gcc/config/t-sol2