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: Representing EH in GENERIC


On Wed, 27 Nov 2002 16:33:56 -0800, Richard Henderson <rth@redhat.com> wrote:

> On Wed, Nov 27, 2002 at 07:01:17PM -0500, Jason Merrill wrote:
>> I actually meant that regardless of whether or not they have separate tree
>> codes.  If there are distinct tree codes, they would still go in the
>> handler operand of the TRY_CATCH_EXPR, the idea being that the notion of an
>> EH region can be separated from what you do if you see an exception.
>
> I guess that seems reasonable.

A related question is whether to group multiple catch clauses together or
break them up, i.e. turn

try { ... }
catch (int) { ... }
catch (...) { ... }

into

try 
 {
  try { ... }
  catch (int) { ... }
 }
catch (...) { ... }

The grouping does seem like a syntactic convenience more than anything
else, but I'm not sure that breaking them up buys us anything either.

Jason


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