This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: use hashval_t in tree.h
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 27 Apr 2006 10:41:33 +1000
- Subject: PATCH: use hashval_t in tree.h
iterative_hash_expr prototyped in tree.h takes (and returns) a
hashval_t, yet tree.h cheats and uses unsigned int, knowing the basic
type of hashval_t. If hashval_t's type ever changes, this may break.
Tested with a bootstrap on i686-pc-linux-gnu. Okay for the trunk?
2006-04-27 Ben Elliston <bje@au.ibm.com>
* tree.h: Include "hashtab.h".
(iterative_hash_expr): Use hashval_t in its prototype.
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);