This is the mail archive of the gcc@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]

Re: [tree-ssa] gcc/java/except.c does not build


On Tue, Aug 05, 2003 at 10:43:34AM +0300, Linus Sjöberg wrote:
> 
> Current version of gcc/java/except.c in tree-ssa-branch does not build:
> ../../gcc/gcc/java/except.c: In function `expand_end_java_handler':
> ../../gcc/gcc/java/except.c:401: syntax error before `outer'

Could you try this patch:


	* except.c (expand_end_java_handler):  Move declarations
	on the beginning of the scope.

Index: except.c
===================================================================
RCS file: /home/pop/cvsroot/gcc-cvs/gcc/gcc/java/except.c,v
retrieving revision 1.27.2.8
diff -c -r1.27.2.8 except.c
*** except.c	31 Jul 2003 16:52:57 -0000	1.27.2.8
--- except.c	5 Aug 2003 08:36:46 -0000
***************
*** 396,405 ****
  	}
        else
  	{
! 	  tree *stmts = get_stmts ();
  	  compound = range->stmt;
! 	  tree outer = TREE_OPERAND (compound, 0);
! 	  tree try_expr = TREE_OPERAND (compound, 1);
  	  /* On the left of COMPOUND is the expresion to be evaluated
  	     before the try handler is entered; on the right is a
  	     TRY_FINALLY_EXPR with no operands as yet.  In the current
--- 396,406 ----
  	}
        else
  	{
! 	  tree *stmts, outer, try_expr;
! 	  stmts = get_stmts ();
  	  compound = range->stmt;
! 	  outer = TREE_OPERAND (compound, 0);
! 	  try_expr = TREE_OPERAND (compound, 1);
  	  /* On the left of COMPOUND is the expresion to be evaluated
  	     before the try handler is entered; on the right is a
  	     TRY_FINALLY_EXPR with no operands as yet.  In the current


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