cgraph.c (cgraph_node): Use INSERT instead of 1 in htab_find_slot_with_hash.
authorJosef Zlomek <zlomekj@suse.cz>
Thu, 2 Oct 2003 15:11:40 +0000 (17:11 +0200)
committerJosef Zlomek <zlomek@gcc.gnu.org>
Thu, 2 Oct 2003 15:11:40 +0000 (15:11 +0000)
* cgraph.c (cgraph_node): Use INSERT instead of 1 in
htab_find_slot_with_hash.
(cgraph_node_for_identifier): Use NO_INSERT.
(cgraph_remove_node): Use NO_INSERT.
(cgraph_varpool_node): Use INSERT.
(cgraph_varpool_node_for_identifier): Use NO_INSERT.

From-SVN: r72031

gcc/ChangeLog
gcc/cgraph.c

index c7970165a73b6dc2e23ca680bb7c2e8113a364fd..3cbf6713e4f7676b6d9be4bf7d04aead7de8f5b9 100644 (file)
@@ -1,3 +1,12 @@
+2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
+
+       * cgraph.c (cgraph_node): Use INSERT instead of 1 in
+       htab_find_slot_with_hash.
+       (cgraph_node_for_identifier): Use NO_INSERT.
+       (cgraph_remove_node): Use NO_INSERT.
+       (cgraph_varpool_node): Use INSERT.
+       (cgraph_varpool_node_for_identifier): Use NO_INSERT.            
+
 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
 
        Waldek Hebisch <hebisch@math.uni.wroc.pl>
index 108cdfc7b9bd4874f972e9ebe8f962aa6f25cecd..eedbd9efbef5258f812005e933f4d37d35823b4c 100644 (file)
@@ -106,7 +106,7 @@ cgraph_node (tree decl)
   slot = (struct cgraph_node **)
     htab_find_slot_with_hash (cgraph_hash, DECL_ASSEMBLER_NAME (decl),
                              IDENTIFIER_HASH_VALUE
-                               (DECL_ASSEMBLER_NAME (decl)), 1);
+                               (DECL_ASSEMBLER_NAME (decl)), INSERT);
   if (*slot)
     return *slot;
   node = ggc_alloc_cleared (sizeof (*node));
@@ -142,7 +142,7 @@ cgraph_node_for_identifier (tree id)
 
   slot = (struct cgraph_node **)
     htab_find_slot_with_hash (cgraph_hash, id,
-                             IDENTIFIER_HASH_VALUE (id), 0);
+                             IDENTIFIER_HASH_VALUE (id), NO_INSERT);
   if (!slot)
     return NULL;
   return *slot;
@@ -228,7 +228,7 @@ cgraph_remove_node (struct cgraph_node *node)
   slot = 
     htab_find_slot_with_hash (cgraph_hash, DECL_ASSEMBLER_NAME (node->decl),
                              IDENTIFIER_HASH_VALUE (DECL_ASSEMBLER_NAME
-                                                    (node->decl)), 1);
+                                                    (node->decl)), NO_INSERT);
   htab_clear_slot (cgraph_hash, slot);
   /* Do not free the structure itself so the walk over chain can continue.  */
 }
@@ -433,7 +433,7 @@ cgraph_varpool_node (tree decl)
   slot = (struct cgraph_varpool_node **)
     htab_find_slot_with_hash (cgraph_varpool_hash, DECL_ASSEMBLER_NAME (decl),
                              IDENTIFIER_HASH_VALUE (DECL_ASSEMBLER_NAME (decl)),
-                             1);
+                             INSERT);
   if (*slot)
     return *slot;
   node = ggc_alloc_cleared (sizeof (*node));
@@ -458,7 +458,7 @@ cgraph_varpool_node_for_identifier (tree id)
 
   slot = (struct cgraph_varpool_node **)
     htab_find_slot_with_hash (cgraph_varpool_hash, id,
-                             IDENTIFIER_HASH_VALUE (id), 0);
+                             IDENTIFIER_HASH_VALUE (id), NO_INSERT);
   if (!slot)
     return NULL;
   return *slot;