trans.c (emit_range_check): Do not emit the check if the base type of the expression...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 10 Mar 2008 19:26:35 +0000 (19:26 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 10 Mar 2008 19:26:35 +0000 (19:26 +0000)
commite1e7141cf3128d384dca902928d98a47cb57dddd
treedc98e5c42a55d7c4388ee9c0100c8cc34396efaa
parent725c2d321c429ef8f09b8474e0f3d693c6a5d1d8
trans.c (emit_range_check): Do not emit the check if the base type of the expression is the type against...

* trans.c (emit_range_check): Do not emit the check if the base type
of the expression is the type against which its range must be checked.

From-SVN: r133083
gcc/ada/ChangeLog
gcc/ada/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/range_check2.adb [new file with mode: 0644]