summaryrefslogtreecommitdiff
path: root/gcc/ada/a-cforma.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-20 15:17:29 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-20 15:17:29 +0000
commit69db21183dfe6d8829336a9b693b8ef7ad3d6eca (patch)
tree47c815ef405b93812310837caa13cd6d1a24c66e /gcc/ada/a-cforma.ads
parent93468e33d6af32a018d3f4fe72cc591d8ba8489c (diff)
downloadgcc-69db21183dfe6d8829336a9b693b8ef7ad3d6eca.tar.gz
2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
* sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result can now apply to a refined postcondition. * sem_ch6.adb (Analyze_Subprogram_Contract): Remove local variable Result_Seen. Add variables Case_Prag, Post_Prag, Seen_In_Case and Seen_In_Post. Update the mechanism that detects whether postconditions and/or constract-cases mention attribute 'Result and introduce a post-state when applied to functions. (Check_Result_And_Post_State): Removed. * sem_prag.adb (Analyze_Pragma): Add local variable Result_Seen. Verify that the expression of pragma Refined_Post mentions attribute 'Result and introduces a post-state. * sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine. 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com> * exp_ch7.adb (Is_Subprogram_Call): New routine. (Process_Transient_Objects): Make variable Must_Hook global with respect to all locally declared subprograms. Search the context for at least one subprogram call. (Requires_Hooking): Removed. 2014-01-20 Claire Dross <dross@adacore.com> * a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads * a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove, External_Axiomatization); git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206819 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-cforma.ads')
-rw-r--r--gcc/ada/a-cforma.ads1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/a-cforma.ads b/gcc/ada/a-cforma.ads
index 2ddbd90a1ab..00cd3989d52 100644
--- a/gcc/ada/a-cforma.ads
+++ b/gcc/ada/a-cforma.ads
@@ -65,6 +65,7 @@ generic
with function "=" (Left, Right : Element_Type) return Boolean is <>;
package Ada.Containers.Formal_Ordered_Maps is
+ pragma Annotate (GNATprove, External_Axiomatization);
pragma Pure;
function Equivalent_Keys (Left, Right : Key_Type) return Boolean;