This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] gcc/java/except.c does not build
- From: Pop Sébastian <pop at gauvain dot u-strasbg dot fr>
- To: Linus Sjöberg <lsjoberg at aland dot net>
- Cc: gcc at gcc dot gnu dot org, Andrew Haley <aph at redhat dot com>, dnovillo at redhat dot com
- Date: Tue, 5 Aug 2003 10:39:21 +0200
- Subject: Re: [tree-ssa] gcc/java/except.c does not build
- References: <o0k79s1rdl.fsf@hal9000.alcom.aland.fi>
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