From c1efebf99e1d1fc1f196fbe3b3222ac3cc19c262 Mon Sep 17 00:00:00 2001 From: charlet Date: Thu, 17 Jul 2014 06:12:09 +0000 Subject: 2014-07-17 Robert Dewar * exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting. 2014-07-17 Ed Schonberg * sem_case.adb (Check_Choice_Set): If the case expression is the expression in a predicate, do not recheck coverage against itself, to prevent spurious errors. * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that expression comes from an aspect specification, to prevent spurious errors when expression is a case expression in a predicate. 2014-07-17 Pascal Obry * adaint.c, adaint.h (__gnat_set_executable): Add mode parameter. * s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter. 2014-07-17 Vincent Celier * gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb, gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output the usage for an erroneous invocation of a gnat tool. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212716 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/make.adb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gcc/ada/make.adb') diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb index ebd2bfd9a52..15b63301429 100644 --- a/gcc/ada/make.adb +++ b/gcc/ada/make.adb @@ -5856,9 +5856,14 @@ package body Make is Targparm.Get_Target_Parameters; - -- Output usage information if no files to compile + -- Output usage information if no argument on the command line + + if Argument_Count = 0 then + Usage; + else + Write_Line ("type ""gnatmake --help"" for help"); + end if; - Usage; Finish_Program (Project_Tree, E_Success); end if; end if; -- cgit v1.2.1