diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-02 10:31:12 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-02 10:31:12 +0000 |
commit | dc74650f2613d95f4ff4798d77b8e77a55e06bf8 (patch) | |
tree | c6d75d4be98fa0d41f80672f7a72776b9bf54c64 /gcc/ada/style.adb | |
parent | 47ac4bbc1c794774b68c9dc7a28d36b806a38a8d (diff) | |
download | gcc-dc74650f2613d95f4ff4798d77b8e77a55e06bf8.tar.gz |
2011-08-02 Jerome Guitton <guitton@adacore.com>
* a-except-2005.adb (Raise_From_Signal_Handler): Call
Debug_Raise_Exception before propagation starts.
2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
* exp_ch6.adb (Expand_Call): Guard restriction checks with a call
to Restriction_Check_Required.
* sem_ch3.adb (Analyze_Object_Declaration): Likewise.
* sem_res.adb (Resolve_Call): Likewise.
* sem_attr.adb (Check_Stream_Attribute): Likewise.
2011-08-02 Bob Duff <duff@adacore.com>
* stylesw.ads: Update comment.
* style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
* errout.ads: Remove obsolete comment.
2011-08-02 Javier Miranda <miranda@adacore.com>
* einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
(Set_Is_Safe_To_Reevaluate): new procedure.
* sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
assignment is allowed on safe-to-reevaluate variables.
(Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
temporary created to remove side effects in expressions that use
the secondary stack as safe-to-reevaluate.
* exp_util.adb (Side_Effect_Free): Add missing code to handle well
variables that are not true constants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177129 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/style.adb')
-rw-r--r-- | gcc/ada/style.adb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gcc/ada/style.adb b/gcc/ada/style.adb index 0f0ab300cba..727a0cdf452 100644 --- a/gcc/ada/style.adb +++ b/gcc/ada/style.adb @@ -236,18 +236,14 @@ package body Style is procedure Missing_Overriding (N : Node_Id; E : Entity_Id) is begin - -- Note that Error_Msg_NE, which would be more natural to use here, - -- is not visible from this generic unit ??? - - Error_Msg_Name_1 := Chars (E); - if Style_Check_Missing_Overriding and then Comes_From_Source (N) then if Nkind (N) = N_Subprogram_Body then - Error_Msg_N -- CODEFIX - ("(style) missing OVERRIDING indicator in body of%", N); + Error_Msg_NE -- CODEFIX + ("(style) missing OVERRIDING indicator in body of&", N, E); else - Error_Msg_N -- CODEFIX - ("(style) missing OVERRIDING indicator in declaration of%", N); + Error_Msg_NE -- CODEFIX + ("(style) missing OVERRIDING indicator in declaration of&", + N, E); end if; end if; end Missing_Overriding; |