diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-02-08 21:27:02 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-02-08 21:27:02 +0000 |
commit | 5fa7f88c064df849718157fb4e90fa865e35fb5b (patch) | |
tree | dc89fdbfec79835dff420526e91afe6ae04f9ca8 /gcc/fix-header.c | |
parent | 4be2e5d967e76bdec83d5b6d08d7b9c5ccacad75 (diff) | |
download | gcc-5fa7f88c064df849718157fb4e90fa865e35fb5b.tar.gz |
Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
* Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
(gen_protos.o): Don't depend on cpplib.h or cpphash.h.
(fix-header.o): Don't depend on cpphash.h.
* scan.c (hashstr): New function.
* scan.h: Prototype it.
* fix-header.c: Don't include cpphash.h. Use hashstr.
* gen-protos.c: Don't include cpphash.h or cpplib.h. Use
hashstr. Report hash table statistics. Add private
definition of xrealloc.
From-SVN: r31854
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r-- | gcc/fix-header.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c index b01f65605de..f01eadc1b30 100644 --- a/gcc/fix-header.c +++ b/gcc/fix-header.c @@ -75,7 +75,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "obstack.h" #include "scan.h" #include "cpplib.h" -#include "cpphash.h" static void v_fatal PARAMS ((const char *, va_list)) ATTRIBUTE_NORETURN; static void fatal PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; @@ -381,7 +380,7 @@ lookup_std_proto (name, name_length) const char *name; int name_length; { - int i = hashf (name, name_length, HASH_SIZE); + int i = hashstr (name, name_length) % HASH_SIZE; int i0 = i; for (;;) { |