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]

Re: PATCH to adjust generation of catch clauses


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


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