]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Sun, 2 Dec 2001 14:09:59 +0000 (14:09 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 2 Dec 2001 14:09:59 +0000 (09:09 -0500)
From-SVN: r47530

gcc/ChangeLog
gcc/cfgbuild.c

index 2a42e6a2db04b91cc94ff8f80415f3e746f1cfa0..6771647229aaedde97391291d0f801035ecb46aa 100644 (file)
@@ -1,3 +1,7 @@
+Sun Dec  2 09:03:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
+
 2001-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * cfgrtl.c (purge_all_dead_edges): Initialize variable.
index ef86939d4ad5f399620fbfe99d4c39194489c2b7..ff2daaeeffc028dee540f03e6cfad39b8ba99aa6 100644 (file)
@@ -674,7 +674,7 @@ enum state
     BLOCK_TO_SPLIT
   };
 #define STATE(bb) (enum state)(size_t)(bb)->aux
-#define SET_STATE(bb, state) (bb)->aux = (void *)(state)
+#define SET_STATE(bb, state) (bb)->aux = (void *) (size_t) (state)
 
 /* Scan basic block BB for possible BB boundaries inside the block
    and create new basic blocks in the progress.  */
@@ -822,11 +822,8 @@ find_many_sub_basic_blocks (blocks)
   int min, max;
 
   for (i = 0; i < n_basic_blocks; i++)
-    {
-      SET_STATE (BASIC_BLOCK (i),
-                TEST_BIT (blocks, i)
-                ? BLOCK_TO_SPLIT : BLOCK_ORIGINAL);
-    }
+    SET_STATE (BASIC_BLOCK (i),
+              TEST_BIT (blocks, i) ? BLOCK_TO_SPLIT : BLOCK_ORIGINAL);
 
   for (i = 0; i < n_basic_blocks; i++)
     {