1. 30 Jun, 2005 1 commit
    • [multiple changes] · a3648cfc
      2005-06-29  Daniel Berlin  <dberlin@dberlin.org>
      
      	* tree-complex.c (complex_variable_components): Now a hashtable.
      	(cvc_lookup): Ditto.
      	(cvc_insert): Ditto.
      	(create_components): Use referenced var iterator.
      	Initialize hashtable.	Use cvc_insert/lookup.
      	(extract_components): Use cvc_insert/lookup.
      	(update_complex_components): Ditto.
      	(update_complex_components_on_edge): Ditto.
      	* tree-dfa.c (referenced_vars): Now a hashtable.
      	(dump_referenced_vars): Use iterator.
      	(referenced_var_lookup): New function.
      	(referenced_var_insert): Ditto.
      	(add_referenced_var): Use referenced_var_insert.
      	(mark_new_vars_to_rename): Use DECL_UID.
      	* tree-flow-inline.h (first_htab_element): New function.
      	(end_htab_p): Ditto.
      	(next_htab_element): Ditto.
      	(first_referenced_var): Ditto.
      	(end_referenced_vars_p): Ditto.
      	(next_referenced_var): Ditto.
      	(is_call_clobbered): Use DECL_UID.
      	(mark_call_clobbered): Ditto.
      	(clear_call_clobbered): Ditto.
      	(mark_non_addressable): Ditto.
      	* tree-flow.h (htab_iterator): New struct.
      	(FOR_EACH_HTAB_ELEMENT): New macro.
      	(struct int_tree_map): New struct.
      	(int_tree_map_hash): Prototype.
      	(int_tree_map_eq): Ditto.
      	(referenced_var_iterator): Ditto.
      	(FOR_EACH_REFERENCED_VAR): New macro.
      	(referenced_vars): Now a hashtable.
      	* tree-into-ssa.c (symbol_marked_for_renaming): Use DECL_UID.
      	(add_new_name_mapping): Ditto.
      	(mark_def_sites): Ditto.
      	(insert_phi_nodes): Use referenced_var iterator.
      	(mark_def_site_blocks): Ditto.
      	(mark_sym_for_renaming): Use DECL_UID.
      	* tree-sra.c (is_sra_candidate_decl): Use DECL_UID.
      	(lookup_element): Ditto.
      	(find_candidates_for_sra): Use referenced_vars iterator.
      	Use DECL_UID.
      	* tree-ssa-alias.c (NUM_REFERENCES): New macro.
      	(NUM_REFERENCES_CLEAR): Ditto.
      	(NUM_REFERENCES_INC): Ditto.
      	(NUM_REFERENCES_SET): Ditto.
      	(alias_obstack): New bitmap obstack.
      	(struct alias_map_d): Use bitmap, not sbitmap.
      	(struct alias_info): Remove num_references.
      	(init_alias_info): Use referenced_var iterator.
      	Initialize bitmap obstack.
      	(delete_alias_info): Use referenced_var iterator.
      	Free bitmap obstack.
      	(compute_points_to_and_addr_escape): Use DECL_UID.
      	Use new NUM_REFERENCES macros.
      	(compute_flow_sensitive_aliasing): may_aliases is now a bitmap.
      	Use new NUM_REFERENCES macros.
      	(group_aliases_into): Update prototype to use bitmap.
      	(setup_pointers_and_addressables): Use referenced_vars iterator.
      	Use DECL_UID. Use new NUM_REFERENCES macros.
      	(add_pointed_to_var): Use DECL_UID.
      	(dump_alias_info): Use referenced_var iterator.
      	(add_type_alias): Ditto.
      	(used_portions): Now a hashtable.
      	(used_part_map_eq): New function.
      	(used_part_map_hash): Ditto.
      	(free_used_part_map): Ditto.
      	(up_lookup): Ditto.
      	(up_insert): Ditto.
      	(get_or_create_used_part_for): Use up_lookup.
      	(create_overlap_variables_for): Ditto.
      	(find_used_portions): Use up_insert.
      	Use DECL_UID.
      	(create_structure_vars): Init used_portions hashtable, use
      	referenced_vars iterator.
      	* tree-ssa-live.c (create_ssa_var_map): sbitmaps became bitmaps.
      	Use DECL_UID.
      	* tree-ssa-loop-im.c (gather_mem_refs_stmt): Use DECL_UID.
      	* tree-ssa-operands.c (get_asm_expr_operands): Ditto.
      	(note_addressable): Ditto.
      	* tree-ssa-structalias.c (set_uids_in_ptset): Ditto.
      	* tree-ssa.c (verify_flow_insensitive_alias_info): Use
      	referenced_var iterator.
      	Use DECL_UID.
      	(delete_tree_ssa): Ditto.
      	(int_tree_map_eq): New function.
      	(int_tree_map_hash): Ditto.
      	* tree-stdarg.c (find_va_list_reference): Use DECL_UID.
      	(va_list_ptr_read): Ditto.
      	(va_list_counter_struct_op): Ditto.
      	(va_list_ptr_write): Ditto.
      	(check_va_list_escapes): Ditto.
      	(check_all_va_list_escapes): Ditto.
      	(execute_optimize_stdarg): Ditto.
      	* tree-tailcall.c (suitable_for_tail_opt_p): Used referenced_var
      	iterator.
      2005-06-30  Daniel Berlin  <dberlin@dberlin.org>
      
      	* hashtab.h (HTAB_DELETED_ENTRY): New macro.
      	(HTAB_EMPTY_ENTRY): New macro.
      
      2005-06-30  Daniel Berlin  <dberlin@dberlin.org>
      
      	* hashtab.c (EMPTY_ENTRY): Moved and renamed.
      	(DELETED_ENTRY): Ditto.
      
      From-SVN: r101480
      Daniel Berlin committed
  2. 10 May, 2005 1 commit
  3. 19 Apr, 2005 1 commit
  4. 27 Mar, 2005 1 commit
    • md5.h: Remove definition and uses of __P. · 6da879de
      include/
      2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
      
      	* md5.h: Remove definition and uses of __P.
      	* dyn-string.h: Remove uses of PARAMS.
      	* fibheap.h: Likewise.
      	* floatformat.h: Likewise.
      	* hashtab.h: Likewise.
      
      libiberty/
      
      2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
      
      	Convert libiberty to use ISO C prototype style 4/n.
      	* hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
      	htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
      	htab_create_alloc, htab_set_functions_ex, htab_create,
      	htab_try_create, htab_delete, htab_empty,
      	find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
      	htab_find, htab_find_slot_with_hash, htab_find_slot,
      	htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
      	htab_traverse_noresize, htab_traverse, htab_collisions,
      	htab_hash_string, iterative_hash): Use ISO C prototype.
      	* hex.c (hex_init): Likewise.
      	* index.c (index): Likewise.
      	* insque.c (insque, remque): Likewise.
      	* lbasename.c (lbasename): Likewise.
      	* lrealpath.c (lrealpath): Likewise.
      	* make-relative-prefix.c (save_string, split_directories,
      	free_split_directories, make_relative_prefix): Likewise.
      	* make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
      	* md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
      	md5_buffer, md5_process_bytes, md5_process_block): Likewise.
      	* memchr.c (memchr): Likewise.
      	* memcpy.c (memcpy): Likewise.
      	* memmove.c (memmove): Likewise.
      	* gettimeofday.c (gettimeofday): Likewise.
      	* getruntime.c (get_run_time): Likewise.
      	* getpwd.c (getpwd, getpwd): Likewise.
      	* getpagesize.c (getpagesize): Likewise.
      	* getopt1.c (getopt_long, getopt_long_only, main): Likewise.
      	* getopt.c (my_index, exchange, _getopt_initialize,
      	_getopt_internal, getopt, main): Likewise.
      	* getcwd.c (getcwd): Likewise.
      	* fnmatch.c (fnmatch): Likewise.
      	* floatformat.c (floatformat_always_valid,
      	floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
      	put_field, floatformat_from_double, floatformat_is_valid,
      	ieee_test, main): Likewise.
      	* fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
      	fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
      	fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
      	fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
      	fibheap_delete, fibheap_empty, fibheap_extr_min_node,
      	fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
      	fibheap_link, fibheap_cut, fibheap_cascading_cut,
      	fibnode_insert_after, fibnode_remove): Likewise.
      	* ffs.c (ffs): Likewise.
      	* fdmatch.c (fdmatch): Likewise.
      	* dyn-string.c (dyn_string_init, dyn_string_new,
      	dyn_string_delete, dyn_string_release, dyn_string_resize,
      	dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
      	dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
      	dyn_string_insert_cstr, dyn_string_insert_char,
      	dyn_string_append, dyn_string_append_cstr,
      	dyn_string_append_char, dyn_string_substring, dyn_string_eq):
      	Likewise.
      
      From-SVN: r97113
      Gabriel Dos Reis committed
  5. 22 Apr, 2004 1 commit
  6. 13 Apr, 2004 1 commit
  7. 30 Mar, 2004 1 commit
  8. 07 May, 2003 2 commits
  9. 17 Mar, 2003 1 commit
  10. 26 Jan, 2003 1 commit
    • hashtab.h (htab_alloc_with_arg, [...]): Add new types. · 74828682
      include/
      	* hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types.
      	(struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f.
      	(htab_create_alloc_ex): New prototype.
      	(htab_set_functions_ex): New prototype.
      
      libiberty/
      	* hashtab.c (htab_create_alloc_ex): New function.
      	(hatab_set_functions_ex): New function.
      	(htab_delete, htab_expand): Support alternate allocation functions.
      
      From-SVN: r61820
      Daniel Jacobowitz committed
  11. 25 Jun, 2002 1 commit
  12. 06 Jun, 2002 2 commits
  13. 04 Jun, 2002 1 commit
  14. 17 Aug, 2001 1 commit
  15. 04 Nov, 2000 1 commit
  16. 03 Nov, 2000 1 commit
  17. 24 Apr, 2000 1 commit
  18. 18 Apr, 2000 1 commit
    • conflict.c (conflict_graph_add): Pass enum type to htab_find_slot. · e38992e8
      	* gcc/conflict.c (conflict_graph_add): Pass enum type to
      	htab_find_slot.
      	* gcc/cpperror.c (hashtab.h): Now include.
      	* gcc/cppexp.c (hashtab.h): Likewise.
      	* gcc/cpplex.c (hashtab.h): Likewise.
      	* gcc/cppfiles.c (hashtab.h): Likewise.
      	(find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
      	to htab_find_slot_with_hash.
      	* gcc/cpphash.c (hashtab.h): Now include.
      	(_cpp_lookup_slot): INSERT is now enum insert_option.
      	* gcc/cpphash.h (_cpp_lookup_slot): Likewise.
      	* gcc/cppinit.c (hashtab.h): Include earlier.
      	(initialize_builtins): Pass enum to htab_find_slot.
      	* gcc/cpplib.c (hashtab.h): Now include.
      	(do_define, do_undef): Pass enum type to _cpp_lookup_slot.
      	(do_pragma_poison, do_assert): Likewise.
      	* gcc/emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
      	htab_find_slot_with_hash.
      	* gcc/simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
      	* gcc/tree.c (type_hash_add): Likewise.
      	(build1): Minor cleanup.
      	* include/hashtab.h (enum insert_option): New type.
      	(htab_find_slot, htab_find_slot_with_hash): Use it.
      	* libiberty/hashtab.c: Various minor cleanups.
      	(htab_find_slot_with_hash): INSERT is now enum insert_option.
      	(htab_find_slot): Likewise.
      
      From-SVN: r33236
      Richard Kenner committed
  19. 31 Mar, 2000 1 commit
    • hashtab.h (hashval_t): New type. · b13eb66b
      	* hashtab.h (hashval_t): New type.
      	(htab_find_with_hash): Use it as an argument.
      	(htab_find_slot_with_hash): Likewise.
      
      	* hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
      	codes.
      	(htab_find_with_hash): Likewise.
      	(htab_find_slot_with_hash): Likewise.
      
      From-SVN: r32842
      Mark Mitchell committed
  20. 14 Mar, 2000 1 commit
  21. 10 Mar, 2000 1 commit
  22. 08 Mar, 2000 1 commit
    • hashtab.c: Remove debugging variables (all_searches, all_collisions, all_expansions). · 5194cf08
      	* hashtab.c: Remove debugging variables (all_searches,
      	all_collisions, all_expansions). Delete
      	all_hash_table_collisions.
      	(create_hash_table, delete_hash_table, empty_hash_table,
      	find_hash_table_entry, remove_element_from_hash_table_entry,
      	clear_hash_table_slot, traverse_hash_table, hash_table_size,
      	hash_table_elements_number, hash_table_collisions): Rename to:
      	htab_create, htab_delete, htab_empty, htab_find_slot,
      	htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
      	htab_elements, htab_collisions.
      	(htab_find): New function, handles common case where you don't
      	plan to add or delete an entry.
      	(htab_expand): Don't create a whole new table, just a new
      	entry vector.
      	(htab_find_slot): Simplify logic.
      
      	* hashtab.h (hash_table_t): Rename to htab_t.
      	(struct hash_table): Rename to struct htab.  Shorten element
      	names.  Reorder elements by size.
      	(htab_hash, htab_eq, htab_trav): New typedefs for the callback
      	function pointers.
      	(hash_table_entry_t): Discard; just use void * for element
      	type.
      
      From-SVN: r32437
      Zack Weinberg committed
  23. 23 Oct, 1999 1 commit
    • hashtab.c (find_hash_table_entry): When returning a DELETED_ENTRY slot, change… · ed38f5d5
      hashtab.c (find_hash_table_entry): When returning a DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
      
      1999-10-23 08:51 -0700  Zack Weinberg  <zack@bitmover.com>
      
      	* hashtab.c (find_hash_table_entry): When returning a
      	DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
      	(clear_hash_table_slot): New function which deletes an entry
      	by its position in the table, not its value.
      	(traverse_hash_table): New function which calls a hook
      	function for every live entry in the table.
      
      	* hashtab.h: Give hash_table_t a struct tag.  Add prototypes
      	for clear_hash_table_slot and traverse_hash_table.  Correct
      	prototype of all_hash_table_collisions.
      
      From-SVN: r30138
      Zack Weinberg committed
  24. 15 Oct, 1999 1 commit