diff options
author | Vincent Celier <celier@adacore.com> | 2007-04-06 11:19:38 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2007-04-06 11:19:38 +0200 |
commit | 958a816e69e829d04e175512a09f8b6f43cd2ffd (patch) | |
tree | f5cd92cf0c8355154424935e5aa51a46816033b9 /gcc/ada/makeusg.adb | |
parent | fea9e956ec1b3e1b95f79e44309cfa93314ddbce (diff) |
errutil.adb (Initialize): Initialize warnings table...
2007-04-06 Vincent Celier <celier@adacore.com>
* errutil.adb (Initialize): Initialize warnings table, if all warnings
are suppressed, supply an initial dummy entry covering all possible
source locations.
* make.adb (Scan_Make_Arg): Reject options that should start with "--"
and start with only one, such as "-RTS=none".
(Collect_Arguments): Do not check for sources outside of projects.
Do not collect arguments if project is externally built.
(Compile_Sources): Do nothing, not even check if the source is up to
date, if its project is externally built.
(Compile): When compiling a predefined source, add -gnatpg
as the second switch, after -c.
(Compile_Sources): Allow compilation of Annex J renames without -a
(Is_In_Object_Directory): Check if the ALI file is in the object
even if there is no project extension.
(Create_Binder_Mapping_File): Only put a unit in the mapping file for
gnatbind if the ALI file effectively exists.
(Initialize): Add the directory where gnatmake is invoked in front of
the path if it is invoked from a bin directory, even without directory
information, so that the correct GNAT tools will be used when spawned
without directory information.
* makeusg.adb: Change switch -S to -eS
Add lines for new switches -we, -wn and -ws
Add line for new switch -p
* prj-proc.adb (Process): Set Success to False when Warning_Mode is
Treat_As_Error and there are warnings.
* switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
-gnatww Change gnatmake switch -S to -eS
(Scan_Make_Switches): Code reorganisation. Process separately multi
character switches and single character switches.
(Scan_Make_Switches): New Boolean out parameter Success. Set Success to
False when switch is not recognized by gnatmake.
(Scan_Make_Switches): Set Setup_Projects True when -p or
--create-missing-dirs is specified.
* fname.adb (Is_Predefined_File_Name): Return True for annex J
renamings Calendar, Machine_Code, Unchecked_Conversion and
Unchecked_Deallocation only when Renamings_Included is True.
* par.adb: Allow library units Calendar, Machine_Code,
Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
when -gnatg is not specified.
(P_Interface_Type_Definition): Remove the formal Is_Synchronized because
there is no need to generate always a record_definition_node in case
of synchronized interface types.
(SIS_Entry_Active): Initialize global variable to False
(P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
indicate cases where AI-447 says "not null" is legal.
* makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
* makegpr.adb (Check_Compilation_Needed): Take into account dependency
files with with several lines starting with the object fileb name.
(Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
is specified.
(Initialize): Add the directory where gprmake is invoked in front of the
path, if it is invoked from a bin directory or with directory
information, so that the correct GNAT tools will be used when invoked
directly.
(Check_Compilation_Needed): Process correctly backslashes on Windows.
* vms_data.ads: Update switches/qualifiers
From-SVN: r123560
Diffstat (limited to 'gcc/ada/makeusg.adb')
-rw-r--r-- | gcc/ada/makeusg.adb | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/gcc/ada/makeusg.adb b/gcc/ada/makeusg.adb index 5dc0604cd3b..027a4cfa473 100644 --- a/gcc/ada/makeusg.adb +++ b/gcc/ada/makeusg.adb @@ -99,6 +99,11 @@ begin "project files"); Write_Eol; + -- Line for -eS + + Write_Str (" -eS Echo commands to stdout instead of stderr"); + Write_Eol; + -- Line for -f Write_Str (" -f Force recompilations of non predefined units"); @@ -151,6 +156,11 @@ begin Write_Str (" -o name Choose an alternate executable name"); Write_Eol; + -- Line for -p + + Write_Str (" -p Create missing obj, lib and exec dirs"); + Write_Eol; + -- Line for -P Write_Str (" -Pproj Use GNAT Project File proj"); @@ -171,10 +181,6 @@ begin Write_Str (" -s Recompile if compiler switches have changed"); Write_Eol; - -- Line for -S - - Write_Str (" -S Echo commands to stdout instead of stderr"); - -- Line for -u Write_Str (" -u Unique compilation, only compile the given files"); @@ -195,6 +201,21 @@ begin Write_Str (" -vPx Specify verbosity when parsing GNAT Project Files"); Write_Eol; + -- Line for -we + + Write_Str (" -we treat all Warnings as Errors"); + Write_Eol; + + -- Line for -wn + + Write_Str (" -wn Normal Warning mode (cancels -we/-ws)"); + Write_Eol; + + -- Line for -ws + + Write_Str (" -ws Suppress all Warnings"); + Write_Eol; + -- Line for -x Write_Str (" -x " & |