trans.c: (Handled_Sequence_Of_Statements_to_gnu): Set location on TRY_CATCH_EXPR.
authorTristan Gingold <gingold@adacore.com>
Mon, 23 Jul 2012 07:26:41 +0000 (07:26 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 23 Jul 2012 07:26:41 +0000 (09:26 +0200)
2012-07-23  Tristan Gingold  <gingold@adacore.com>

* gcc-interface/trans.c: (Handled_Sequence_Of_Statements_to_gnu): Set
location on TRY_CATCH_EXPR.

From-SVN: r189769

gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c

index fb0272b..b188a62 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-23  Tristan Gingold  <gingold@adacore.com>
+
+       * gcc-interface/trans.c: (Handled_Sequence_Of_Statements_to_gnu): Set
+       location on TRY_CATCH_EXPR.
+
 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Try to ensure
index 95b83fe..93d3af1 100644 (file)
@@ -4468,6 +4468,7 @@ Handled_Sequence_Of_Statements_to_gnu (Node_Id gnat_node)
       /* Now make the TRY_CATCH_EXPR for the block.  */
       gnu_result = build2 (TRY_CATCH_EXPR, void_type_node,
                           gnu_inner_block, gnu_handlers);
+      set_expr_location_from_node (gnu_result, gnat_node);
     }
   else
     gnu_result = gnu_inner_block;