diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-08-01 12:06:44 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-08-01 12:06:44 +0200 |
commit | 39521a94f844f6c6462b4b7849e7f1e2780be6fa (patch) | |
tree | ca4a53080ce020fa8abbb8fc3d5044f4955a0102 /gcc/ada/sem_ch12.adb | |
parent | b98a872b2227a0a075cce2549db7bb415fe6e083 (diff) | |
download | gcc-39521a94f844f6c6462b4b7849e7f1e2780be6fa.zip gcc-39521a94f844f6c6462b4b7849e7f1e2780be6fa.tar.gz gcc-39521a94f844f6c6462b4b7849e7f1e2780be6fa.tar.bz2 |
[multiple changes]
2014-08-01 Yannick Moy <moy@adacore.com>
* inline.adb (Cannot_Inline): Issue info message instead of
warning for subprograms not inlined in GNATprove mode.
* sem_res.adb (Resolve_Call): Take body into account for deciding
whether subprogram can be inlined in GNATprove mode or not.
2014-08-01 Claire Dross <dross@adacore.com>
* exp_util.ads (Get_First_Parent_With_Ext_Axioms_For_Entity): Renaming
of Get_First_Parent_With_External_Axiomatization_For_Entity for
shorter.
* sem_ch12.adb (Analyze_Associations): Only call Build_Wrapper
for parameters of packages with external axiomatization.
From-SVN: r213443
Diffstat (limited to 'gcc/ada/sem_ch12.adb')
-rw-r--r-- | gcc/ada/sem_ch12.adb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch12.adb b/gcc/ada/sem_ch12.adb index 2faed4c..3c78376 100644 --- a/gcc/ada/sem_ch12.adb +++ b/gcc/ada/sem_ch12.adb @@ -30,6 +30,7 @@ with Elists; use Elists; with Errout; use Errout; with Expander; use Expander; with Exp_Disp; use Exp_Disp; +with Exp_Util; use Exp_Util; with Fname; use Fname; with Fname.UF; use Fname.UF; with Freeze; use Freeze; @@ -1669,7 +1670,11 @@ package body Sem_Ch12 is else if GNATprove_Mode - and then Ekind (Defining_Entity (Analyzed_Formal)) + and then + Present + (Get_First_Parent_With_Ext_Axioms_For_Entity + (Defining_Entity (Analyzed_Formal))) + and then Ekind (Defining_Entity (Analyzed_Formal)) = E_Function then |