trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
authorOlivier Hainque <hainque@adacore.com>
Tue, 4 Jan 2011 09:30:06 +0000 (09:30 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 4 Jan 2011 09:30:06 +0000 (09:30 +0000)
commit2a02d0907c0b500018ba900e93239e1b03281c67
treefe02110a5e9b80b984e5374d408f68b56fd163ec
parent89f5e978044c3086e99418ea6855bd1faacba2a0
trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.

* gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
(set_end_locus_from_node): New function.
(Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
make and the function end_locus.
(Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
for the elaboration subprogram.
(set_gnu_expr_location_from_node) <default case>: Use it to attempt to
set the end_locus of the expression as well.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
From-SVN: r168455
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c