[tree-ssa] gcc/java/except.c does not build
Pop Sébastian
pop@gauvain.u-strasbg.fr
Tue Aug 5 08:59:00 GMT 2003
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
More information about the Gcc
mailing list