diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-08 21:27:02 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-08 21:27:02 +0000 |
commit | 745272dbe781216d3b1bb4848b3af9a9d8dda016 (patch) | |
tree | dc89fdbfec79835dff420526e91afe6ae04f9ca8 /gcc/fix-header.c | |
parent | 2e931affe3fad0cb9ae8116d79b0ceb545cb913c (diff) | |
download | gcc-745272dbe781216d3b1bb4848b3af9a9d8dda016.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31854 138bc75d-0d04-0410-961f-82ee72b054a4
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 (;;) { |