]> git.ipfire.org Git - thirdparty/gcc.git/commit
exp_ch4.adb (In_Range_Chec)): New predicate, subsidiary of Expand_N_In...
authorEd Schonberg <schonberg@adacore.com>
Wed, 22 Jun 2016 09:48:49 +0000 (09:48 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 22 Jun 2016 09:48:49 +0000 (11:48 +0200)
commit444656ce62eb1a2fd5e8e872b3804df0b61129a4
treef7fd287584aed6bd788beac32689d69cce0c5294
parent3bb91f983bc2d530e31ca3615cde2fb1c563005a
exp_ch4.adb (In_Range_Chec)): New predicate, subsidiary of Expand_N_In...

2016-06-22  Ed Schonberg  <schonberg@adacore.com>

* exp_ch4.adb (In_Range_Chec)): New predicate, subsidiary of
Expand_N_In: within an expanded range check that might raise
Constraint_Error do not generate a predicate check as well. It
is redundant because the context will add an explicit predicate
check, and it will raise the wrong exception if it fails.
* lib-xref-spark_specific.adb (Add_SPARK_File): Remove useless checks
since dependency units always have an associated compilation unit.

From-SVN: r237683
gcc/ada/ChangeLog
gcc/ada/exp_ch4.adb
gcc/ada/lib-xref-spark_specific.adb