This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to adjust generation of catch clauses
- To: mark at codesourcery dot com
- Subject: Re: PATCH to adjust generation of catch clauses
- From: Anthony Green <green at cygnus dot com>
- Date: 23 Nov 1999 06:08:28 -0800
- CC: gcc-patches at gcc dot gnu dot org, apbianco at cygnus dot com, aph at cygnus dot com
- References: <199911190202.SAA05194@adsl-206-170-148-33.dsl.snfc21.pacbell.net>
Mark Mitchell <mark@codesourcery.com> writes:
> I discovered (while working on inlining-on-trees) that, while
> expanding exception-handlers, we tended to call expand_expr for
> out-of-scope VAR_DECLs, i.e., those whose RTL had long since been
> popped in pop_temp_slots. That turned out to work, but by
> happenstance. When I made a few changes, to do inlining, it stopped
> working. This patch moves the expansion of handlers to the time when
> the appropriate variables are still in scope.
This patch breaks exception handling for gcj.
The compiler ends up in an endless loop while expanding catch handlers
for a try block (see the call to expand_end_all_catch in
gcc/java/expr.c:2032). Presumably jc1 should be doing something
different now.
AG
--
Anthony Green Cygnus Solutions
Sunnyvale, California