diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-31 10:19:18 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-31 10:19:18 +0000 |
commit | a723873ac68caf7f6355582fd214698aff9173d0 (patch) | |
tree | c8c87d18a9109794633d5e936943a3f76d7e949f /gcc/ada/clean.adb | |
parent | 0fc62fac18791458a32a16fc74766c775ddd6a34 (diff) | |
download | gcc-a723873ac68caf7f6355582fd214698aff9173d0.tar.gz |
2007-08-30 Vincent Celier <celier@adacore.com>
PR ada/4720
* gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
(Check_Version_And_Help): New procedure in package Switch to process
switches --version and --help.
Use Check_Version_And_Help in GNAT tools
* make.adb: Ditto.
(Compile_Sources): Make sure that sources that are "excluded" are not
compiled.
(Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
project file is used.
(Version_Switch): Remove, moved to Switch
(Help_Switch): Remove, moved to Switch
(Display_Version): Remove, moved to Switch
* switch.ads, switch.adb (Check_Version_And_Help): New procedure in
package Switch to process switches --version and --help.
(Display_Version): New procedure
* gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127967 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/clean.adb')
-rw-r--r-- | gcc/ada/clean.adb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/ada/clean.adb b/gcc/ada/clean.adb index d4692ba65c5..e3f8541263b 100644 --- a/gcc/ada/clean.adb +++ b/gcc/ada/clean.adb @@ -26,7 +26,6 @@ with ALI; use ALI; with Csets; -with Gnatvsn; use Gnatvsn; with Makeutl; with MLib.Tgt; use MLib.Tgt; with Namet; use Namet; @@ -39,6 +38,7 @@ with Prj.Ext; with Prj.Pars; with Prj.Util; use Prj.Util; with Snames; +with Switch; use Switch; with Table; with Targparm; use Targparm; with Types; use Types; @@ -1342,11 +1342,7 @@ package body Clean is begin if not Copyright_Displayed then Copyright_Displayed := True; - Put_Line - ("GNATCLEAN " & Gnatvsn.Gnat_Version_String - & " Copyright 2003-" - & Current_Year - & " Free Software Foundation, Inc."); + Display_Version ("GNATCLEAN", "2003"); end if; end Display_Copyright; @@ -1640,9 +1636,14 @@ package body Clean is procedure Parse_Cmd_Line is Last : constant Natural := Argument_Count; Source_Index : Int := 0; - Index : Positive := 1; + Index : Positive; begin + -- First, check for --version and --help + + Check_Version_And_Help ("GNATCLEAN", "2003", Usage'Access); + + Index := 1; while Index <= Last loop declare Arg : constant String := Argument (Index); |