@@ -2336,7 +2336,7 @@ add_try_catch (location *loc,
2336
2336
{
2337
2337
tree success_body = alloc_stmt_list ();
2338
2338
2339
-
2339
+ // TODO: find a better way to keep the EH_ELSE_EXPR than creating a nop via inline asm.
2340
2340
tree t_string = build_string (" nop" );
2341
2341
tree asm_stmt
2342
2342
= build5 (ASM_EXPR, void_type_node, t_string, NULL_TREE, NULL_TREE, NULL_TREE, NULL_TREE);
@@ -2346,9 +2346,7 @@ add_try_catch (location *loc,
2346
2346
ASM_VOLATILE_P (asm_stmt) = 1 ;
2347
2347
ASM_INPUT_P (asm_stmt) = 0 ;
2348
2348
append_to_statement_list (asm_stmt, &success_body);
2349
- // debug_tree (success_body);
2350
2349
2351
- // TODO: perhaps we need a EH_FILTER_EXPR instead?
2352
2350
catch_body = build2 (EH_ELSE_EXPR, void_type_node, success_body, catch_body);
2353
2351
add_stmt (build2 (TRY_FINALLY_EXPR, void_type_node,
2354
2352
try_body, catch_body));
@@ -2358,8 +2356,6 @@ add_try_catch (location *loc,
2358
2356
catch_body = build2 (CATCH_EXPR, void_type_node, NULL , catch_body);
2359
2357
tree try_catch = build2 (TRY_CATCH_EXPR, void_type_node,
2360
2358
try_body, catch_body);
2361
- // if (is_finally)
2362
- // TRY_CATCH_IS_CLEANUP (try_catch) = true;
2363
2359
add_stmt (try_catch);
2364
2360
}
2365
2361
}
0 commit comments