]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Assertion_Policy for class-wide precondition
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jul 2018 08:09:30 +0000 (08:09 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jul 2018 08:09:30 +0000 (08:09 +0000)
commit19d786c363f707ee1be1af64456a3aa1a03261fe
tree715d049edce5ab801e8651a25077c57407d7ef7a
parent6a5cf51afc892807c7f046d35e013338054cffdd
[Ada] Assertion_Policy for class-wide precondition

This patch fixes the compiler to that class-wide preconditions on primitive
operations of interfaces are not checked at run time when the Assertion_Policy
indicates that they should be ignored. This is required by the RM.

2018-07-17  Bob Duff  <duff@adacore.com>

gcc/ada/

* exp_disp.adb (Build_Class_Wide_Check): Return early if the
precondition is supposed to be ignored.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262789 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/exp_disp.adb