trans.c (gnat_to_gnu): Simplify expansion to use only a single check instead of three...
authorGeert Bosch <bosch@adacore.com>
Fri, 17 Oct 2008 19:22:42 +0000 (19:22 +0000)
committerGeert Bosch <bosch@gcc.gnu.org>
Fri, 17 Oct 2008 19:22:42 +0000 (21:22 +0200)
commit82f7c45f924ec4b3b905c5b930fb50a405cc7d94
tree0290671889364d0a3a7a5d741ded8b27aefe54f3
parent1f6d0c60bacd58ed5dea39bad23e540e01de65ce
trans.c (gnat_to_gnu): Simplify expansion to use only a single check instead of three...

* gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
to use only a single check instead of three, and avoid unnecessary
COMPOUND_EXPR.
(emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
creating more opportunities for optimizations.

From-SVN: r141198
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c