This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Warning removal in cfgbuild.c


Sun Dec  2 09:03:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* cfgbuild.c (SET_STATE): Add cast to eliminate warning.a

*** cfgbuild.c	2001/10/20 10:03:50	1.8
--- cfgbuild.c	2001/12/02 14:06:17
*************** enum state
*** 675,679 ****
    };
  #define STATE(bb) (enum state)(size_t)(bb)->aux
! #define SET_STATE(bb, state) (bb)->aux = (void *)(state)
  
  /* Scan basic block BB for possible BB boundaries inside the block
--- 675,679 ----
    };
  #define STATE(bb) (enum state)(size_t)(bb)->aux
! #define SET_STATE(bb, state) (bb)->aux = (void *) (size_t) (state)
  
  /* Scan basic block BB for possible BB boundaries inside the block
*************** find_many_sub_basic_blocks (blocks)
*** 823,831 ****
  
    for (i = 0; i < n_basic_blocks; i++)
!     {
!       SET_STATE (BASIC_BLOCK (i),
! 		 TEST_BIT (blocks, i)
! 		 ? BLOCK_TO_SPLIT : BLOCK_ORIGINAL);
!     }
  
    for (i = 0; i < n_basic_blocks; i++)
--- 823,828 ----
  
    for (i = 0; i < n_basic_blocks; i++)
!     SET_STATE (BASIC_BLOCK (i),
! 	       TEST_BIT (blocks, i) ? BLOCK_TO_SPLIT : BLOCK_ORIGINAL);
  
    for (i = 0; i < n_basic_blocks; i++)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]