PATCH: use hashval_t in tree.h

Ben Elliston bje@au1.ibm.com
Thu Apr 27 03:36:00 GMT 2006


> Not without updating the makefile dependencies it's not :)

Ah -- good catch, thanks.  Trying again:

2006-04-27  Ben Elliston  <bje@au.ibm.com>

        * tree.h: Include "hashtab.h".
        (iterative_hash_expr): Use hashval_t in its prototype.
        * Makefile.in (TREE_H): Add $(HASHTAB_H).

Index: tree.h
===================================================================
--- tree.h      (revision 113285)
+++ tree.h      (working copy)
@@ -22,6 +22,7 @@ Software Foundation, 51 Franklin Street,
 #ifndef GCC_TREE_H
 #define GCC_TREE_H
 
+#include "hashtab.h"
 #include "machmode.h"
 #include "input.h"
 #include "statistics.h"
@@ -4266,7 +4267,7 @@ extern bool variably_modified_type_p (tr
 extern int tree_log2 (tree);
 extern int tree_floor_log2 (tree);
 extern int simple_cst_equal (tree, tree);
-extern unsigned int iterative_hash_expr (tree, unsigned int);
+extern hashval_t iterative_hash_expr (tree, hashval_t);
 extern int compare_tree_int (tree, unsigned HOST_WIDE_INT);
 extern int type_list_equal (tree, tree);
 extern int chain_member (tree, tree);
Index: Makefile.in
===================================================================
--- Makefile.in (revision 113285)
+++ Makefile.in (working copy)
@@ -747,7 +747,7 @@ RTL_H = $(RTL_BASE_H) genrtl.h
 PARAMS_H = params.h params.def
 BUILTINS_DEF = builtins.def sync-builtins.def omp-builtins.def
 TREE_H = tree.h tree.def $(MACHMODE_H) tree-check.h $(BUILTINS_DEF) \
-          input.h statistics.h vec.h treestruct.def
+          input.h statistics.h vec.h treestruct.def $(HASHTAB_H)
 BASIC_BLOCK_H = basic-block.h bitmap.h sbitmap.h varray.h $(PARTITION_H) \
           hard-reg-set.h cfghooks.h $(OBSTACK_H)
 GCOV_IO_H = gcov-io.h gcov-iov.h auto-host.h



More information about the Gcc-patches mailing list