DJ Delorie
a17fcd1940
merge from gcc
17 years ago
H.J. Lu
fca6a796b7
2009-09-03 Ozkan Sezer <sezeroz@gmail.com>
PR target/39065
* configure.ac: Also check for intptr_t.
* config.h.in: Regenerated.
* configure: Regenerated.
* hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
instead of of long.
17 years ago
DJ Delorie
483d7cf40a
merge from gcc
17 years ago
DJ Delorie
a7d421b815
merge from gcc
20 years ago
DJ Delorie
c3cca4c912
merge from gcc
21 years ago
DJ Delorie
abf6a75b42
merge from gcc
22 years ago
Nick Clifton
979c05d324
Update the address and phone number of the FSF organization.
22 years ago
DJ Delorie
49b1fae430
merge from gcc
22 years ago
DJ Delorie
bac7199c79
merge from gcc
22 years ago
DJ Delorie
bb6a587dd3
merge from gcc
23 years ago
DJ Delorie
d6ea4e809a
merge from gcc
23 years ago
DJ Delorie
fe046a1715
merge from gcc
23 years ago
DJ Delorie
686e72d729
merge from gcc
23 years ago
DJ Delorie
5f73c3782d
merge from gcc
23 years ago
Jason Merrill
eafaf5ebda
s/burtle/iterative
24 years ago
Jason Merrill
7108c5dc79
libiberty/
* hashtab.c (burtle_hash): New fn.
* configure.in: Add AC_C_BIGENDIAN_CROSS.
* aclocal.m4: Include accross.m4.
* configure, config.in: Regenerate.
include/
* hashtab.h (burtle_hash): Prototype.
(burtle_hash_object): New macro.
24 years ago
DJ Delorie
1ea16ec5b4
merge from gcc
24 years ago
DJ Delorie
f77ed96c7b
merge from gcc
24 years ago
DJ Delorie
2336e17716
merge from gcc
24 years ago
DJ Delorie
c4d8feb262
merge from gcc
24 years ago
Daniel Jacobowitz
5f9624e37e
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.
24 years ago
DJ Delorie
eed2b28c05
merge from gcc
24 years ago
DJ Delorie
1889369086
merge from gcc
25 years ago
Richard Henderson
b1c933fc52
* hashtab.c (higher_prime_number): Use 7 as minimum.
(find_empty_slot_for_expand): Don't compute hash2 unless needed.
(htab_find_slot_with_hash): Likewise.
25 years ago
DJ Delorie
e6450fe561
merge from gcc
25 years ago
DJ Delorie
68a41de77d
merge from gcc
25 years ago
DJ Delorie
8fc3479902
merge from gcc
25 years ago
DJ Delorie
06b0287c20
merge from gcc
26 years ago
DJ Delorie
b1e51b3cd9
merge from gcc
26 years ago
DJ Delorie
5ca0f83d75
* hashtab.c (higher_prime_number): Use a table, rather than a
seive, to find the next prime.
26 years ago
Hans-Peter Nilsson
99a4c1bd6b
* hashtab.c (htab_expand): Change to return int. Use calloc or
xcalloc depending on htab->return_allocation_failure. Return zero
if calloc fails.
(htab_create): Update comment to cover memory allocation.
(htab_try_create): New.
(htab_find_slot_with_hash): Return NULL if htab_expand fails.
Update comment to cover this.
26 years ago
Hans-Peter Nilsson
e0f3df8f1e
* hashtab.c: Change void * to PTR where necessary.
(htab_create, htab_expand): Correct formatting of comment before
function.
26 years ago
H.J. Lu
eb383413c2
Synced with libiberty in the gcc repository.
27 years ago
Zack Weinberg
5c82d20a26
* hashtab.c, partition.c, xmemdup.c: Include string.h
if HAVE_STRING_H.
* pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
* objalloc.c: Include config.h. Include stdlib.h and don't
declare malloc or free if HAVE_STDLIB_H.
* strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
else declare malloc without prototype. Include string.h if
HAVE_STRING_H, else declare memset without prototype. Don't
include stddef.h.
* sort.c: Bring over from GCC.
27 years ago
Jason Merrill
b4fe268363
merge from gcc
27 years ago
Ian Lance Taylor
e2eaf47799
import libiberty from egcs
27 years ago