From 939c12d26a67c4e4d42d106d31c8f821b68cb1fb Mon Sep 17 00:00:00 2001 From: Robert Dewar Date: Tue, 14 Aug 2007 10:37:08 +0200 Subject: inline.adb, [...]: Suppress unmodified in-out parameter warning in some cases This patch is a also... 2007-08-14 Robert Dewar Ed Schonberg * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: Suppress unmodified in-out parameter warning in some cases This patch is a also fairly significant change to the way suppressible checks are handled. * checks.ads, checks.adb (Install_Null_Excluding_Check): No check needed for access to concurrent record types generated by the expander. (Generate_Range_Check): When generating a temporary to capture the value of a conversion that requires a range check, set the type of the temporary before rewriting the node, so that the type is always properly placed for back-end use. (Apply_Float_Conversion_Check): Handle case where the conversion is truncating. (Get_Discriminal): Code reformatting. Climb the scope stack looking for a protected type in order to examine its discriminants. From-SVN: r127410 --- gcc/ada/frontend.adb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/ada/frontend.adb') diff --git a/gcc/ada/frontend.adb b/gcc/ada/frontend.adb index cc5c2cb849f..7c6676cd4c7 100644 --- a/gcc/ada/frontend.adb +++ b/gcc/ada/frontend.adb @@ -322,9 +322,10 @@ begin Lib.List; end if; - -- Output any messages for unreferenced entities + -- Output waiting warning messages - Output_Unreferenced_Messages; + Sem_Warn.Output_Non_Modifed_In_Out_Warnings; + Sem_Warn.Output_Unreferenced_Messages; Sem_Warn.Check_Unused_Withs; end if; end if; -- cgit v1.2.1