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]

[tree-ssa] Fix bsi_next_in_bb


This was broken out of one of Zdenek's larger patches.  It fixes
cases where a block ends at a BIND_EXPR.


	* tree-cfg.c (bsi_next_in_bb): Work correctly when the block ends
	with start of BIND_EXPR.

Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.154
diff -c -3 -p -r1.1.4.154 tree-cfg.c
*** tree-cfg.c	21 Aug 2003 17:23:51 -0000	1.1.4.154
--- tree-cfg.c	24 Aug 2003 03:01:49 -0000
*************** bsi_next_in_bb (block_stmt_iterator *i, 
*** 3540,3547 ****
  	    }
  	  else
  	    bind.context = tmp;
- 	  *i = bind;
  	}
      }
  
    if (i->tp == NULL && i->context != NULL_TREE)
--- 3540,3547 ----
  	    }
  	  else
  	    bind.context = tmp;
  	}
+       *i = bind;
      }
  
    if (i->tp == NULL && i->context != NULL_TREE)



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