This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] htab argument missmatch
- From: Marcin Dalecki <martin at dalecki dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 31 Jan 2005 12:10:27 +0100
- Subject: [PATCH] htab argument missmatch
The following set of patches is fixing argument type mismatches for the
htab_family
of functions:
diff -urN gcc-4.0-20050123/gcc/tree-ssa-dom.c
gcc-4.0-20050123-new/gcc/tree-ssa-dom.c
--- gcc-4.0-20050123/gcc/tree-ssa-dom.c Sun Jan 23 16:05:32 2005
+++ gcc-4.0-20050123-new/gcc/tree-ssa-dom.c Mon Jan 31 09:46:43 2005
@@ -1386,7 +1386,7 @@
initialize_hash_element (cond, value, element);
slot = htab_find_slot_with_hash (avail_exprs, (void *)element,
- element->hash, true);
+ element->hash, INSERT);
if (*slot == NULL)
{
*slot = (void *) element;
diff -urN gcc-4.0-20050123/gcc/tree-ssa-threadupdate.c
gcc-4.0-20050123-new/gcc/tree-ssa-threadupdate.c
--- gcc-4.0-20050123/gcc/tree-ssa-threadupdate.c Thu Nov 25 23:31:09
2004
+++ gcc-4.0-20050123-new/gcc/tree-ssa-threadupdate.c Mon Jan 31
10:03:26 2005
@@ -222,7 +222,7 @@
edges associated with E in the hash table. */
static struct redirection_data *
-lookup_redirection_data (edge e, edge incoming_edge, bool insert)
+lookup_redirection_data (edge e, edge incoming_edge, enum
insert_option insert)
{
void **slot;
struct redirection_data *elt;
@@ -489,7 +489,7 @@
/* Insert the outgoing edge into the hash table if it is not
already in the hash table. */
- lookup_redirection_data (e2, e, true);
+ lookup_redirection_data (e2, e, INSERT);
}
}
@@ -500,7 +500,7 @@
if (all)
{
edge e = EDGE_PRED (bb, 0)->aux;
- lookup_redirection_data (e, NULL, false)->do_not_duplicate =
true;
+ lookup_redirection_data (e, NULL, NO_INSERT)->do_not_duplicate =
true;
}
/* Now create duplicates of BB.