decl.c (gnat_to_gnu_entity): Invoke global_bindings_p last when possible.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 5 Jul 2016 10:32:43 +0000 (10:32 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 5 Jul 2016 10:32:43 +0000 (10:32 +0000)
commitb0ad2d78b237380c47f92a8f61e257a1e434a3fe
treec3d49018b89d5d29b8ceb1ac06d77899941b73ac
parentf723a43cbcb734e6bb93ef55c36d87a8e03235f0
decl.c (gnat_to_gnu_entity): Invoke global_bindings_p last when possible.

* gcc-interface/decl.c (gnat_to_gnu_entity): Invoke global_bindings_p
last when possible.  Do not call elaborate_expression_2 on offsets in
local record types and avoid useless processing for constant offsets.

From-SVN: r238001
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c