diff options
author | Tristan Gingold <gingold@adacore.com> | 2012-07-23 07:26:41 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2012-07-23 09:26:41 +0200 |
commit | 63ed669febce7bc3c720c936aebaf4cd4ae6f897 (patch) | |
tree | ba5e8ed63c10be0714dbd35b9b6258264410911f /gcc | |
parent | 78aaa514d54c9257dec1869e01aed679b983f46d (diff) | |
download | gcc-63ed669febce7bc3c720c936aebaf4cd4ae6f897.zip gcc-63ed669febce7bc3c720c936aebaf4cd4ae6f897.tar.gz gcc-63ed669febce7bc3c720c936aebaf4cd4ae6f897.tar.bz2 |
trans.c: (Handled_Sequence_Of_Statements_to_gnu): Set location on TRY_CATCH_EXPR.
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/gcc-interface/trans.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index fb0272b..b188a62 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -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 diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c index 95b83fe..93d3af1 100644 --- a/gcc/ada/gcc-interface/trans.c +++ b/gcc/ada/gcc-interface/trans.c @@ -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; |