This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Another minor any_pending_cleanups simplification
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 01 Jul 2003 13:41:12 -0600
- Subject: Another minor any_pending_cleanups simplification
- Reply-to: law at redhat dot com
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)