Representing EH in GENERIC
Jason Merrill
jason@redhat.com
Sun Dec 1 22:20:00 GMT 2002
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
More information about the Gcc
mailing list