Add missing end location information
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 28 Sep 2020 07:09:41 +0000 (09:09 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 28 Sep 2020 07:32:27 +0000 (09:32 +0200)
commitcc997e0cc4fcc9ae8e389757d94a0ae69d34cd50
treee3da8016f11ae01d8e93cdc8acdd6a171e048cdf
parent88795e14ae7143bd8039af68d2d876ae34568799
Add missing end location information

In some cases we would fail to put the end location information on the
outermost BIND_EXPR of a function, which is problematic when there is
a dynamic stack allocation.

gcc/ada/ChangeLog:
* gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the end locus
of body and declaration earlier.
gcc/ada/gcc-interface/trans.c