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]

Another minor any_pending_cleanups simplification


We already know that block_stack->data.block_cleanups must be NULL at the
second IF statement -- because otherwise we could have returned via the
first IF statement.


	* stmt.c (any_pending_cleanups): Further simplification.

Index: stmt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/stmt.c,v
retrieving revision 1.314
diff -c -3 -p -r1.314 stmt.c
*** stmt.c	1 Jul 2003 02:04:11 -0000	1.314
--- stmt.c	1 Jul 2003 19:39:20 -0000
*************** any_pending_cleanups ()
*** 4391,4398 ****
  
    if (block_stack->data.block.cleanups != NULL)
      return 1;
!   if (block_stack->data.block.cleanups == 0
!       && block_stack->data.block.outer_cleanups == 0)
      return 0;
  
    for (block = block_stack->next; block; block = block->next)
--- 4391,4398 ----
  
    if (block_stack->data.block.cleanups != NULL)
      return 1;
! 
!   if (block_stack->data.block.outer_cleanups == 0)
      return 0;
  
    for (block = block_stack->next; block; block = block->next)



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