diff options
Diffstat (limited to 'gcc/ada/makeusg.adb')
-rw-r--r-- | gcc/ada/makeusg.adb | 118 |
1 files changed, 45 insertions, 73 deletions
diff --git a/gcc/ada/makeusg.adb b/gcc/ada/makeusg.adb index ec219b53eb1..051c8f16b80 100644 --- a/gcc/ada/makeusg.adb +++ b/gcc/ada/makeusg.adb @@ -32,15 +32,6 @@ with Usage; procedure Makeusg is - procedure Write_Switch_Char; - -- Write two spaces followed by appropriate switch character - - procedure Write_Switch_Char is - begin - Write_Str (" "); - Write_Char (Switch_Character); - end Write_Switch_Char; - -- Start of processing for Makeusg begin @@ -64,124 +55,111 @@ begin -- Line for -a - Write_Switch_Char; - Write_Str ("a Consider all files, even readonly ali files"); + Write_Str (" -a Consider all files, even readonly ali files"); Write_Eol; -- Line for -b - Write_Switch_Char; - Write_Str ("b Bind only"); + Write_Str (" -b Bind only"); Write_Eol; -- Line for -c - Write_Switch_Char; - Write_Str ("c Compile only"); + Write_Str (" -c Compile only"); + Write_Eol; + + -- Line for -C + + Write_Str (" -C Cache source mappings: " & + "invoke the compiler with a mapping file"); Write_Eol; -- Line for -f - Write_Switch_Char; - Write_Str ("f Force recompilations of non predefined units"); + Write_Str (" -f Force recompilations of non predefined units"); Write_Eol; -- Line for -i - Write_Switch_Char; - Write_Str ("i In place. Replace existing ali file, "); + Write_Str (" -i In place. Replace existing ali file, "); Write_Str ("or put it with source"); Write_Eol; -- Line for -jnnn - Write_Switch_Char; - Write_Str ("jnum Use nnn processes to compile"); + Write_Str (" -jnum Use nnn processes to compile"); Write_Eol; -- Line for -k - Write_Switch_Char; - Write_Str ("k Keep going after compilation errors"); + Write_Str (" -k Keep going after compilation errors"); Write_Eol; -- Line for -l - Write_Switch_Char; - Write_Str ("l Link only"); + Write_Str (" -l Link only"); Write_Eol; -- Line for -m - Write_Switch_Char; - Write_Str ("m Minimal recompilation"); + Write_Str (" -m Minimal recompilation"); Write_Eol; -- Line for -M - Write_Switch_Char; - Write_Str ("M List object file dependences for Makefile"); + Write_Str (" -M List object file dependences for Makefile"); Write_Eol; -- Line for -n - Write_Switch_Char; - Write_Str ("n Check objects up to date, output next file "); + Write_Str (" -n Check objects up to date, output next file "); Write_Str ("to compile if not"); Write_Eol; -- Line for -o - Write_Switch_Char; - Write_Str ("o name Choose an alternate executable name"); + Write_Str (" -o name Choose an alternate executable name"); Write_Eol; -- Line for -P - Write_Switch_Char; - Write_Str ("Pproj Use GNAT Project File proj"); + Write_Str (" -Pproj Use GNAT Project File proj"); Write_Eol; -- Line for -q - Write_Switch_Char; - Write_Str ("q Be quiet/terse"); + Write_Str (" -q Be quiet/terse"); Write_Eol; -- Line for -s - Write_Switch_Char; - Write_Str ("s Recompile if compiler switches have changed"); + Write_Str (" -s Recompile if compiler switches have changed"); Write_Eol; -- Line for -u - Write_Switch_Char; - Write_Str ("u Unique compilation. Only compile the given file."); + Write_Str (" -u Unique compilation. Only compile the given file."); Write_Eol; -- Line for -v - Write_Switch_Char; - Write_Str ("v Display reasons for all (re)compilations"); + Write_Str (" -v Display reasons for all (re)compilations"); Write_Eol; -- Line for -vPx - Write_Switch_Char; - Write_Str ("vPx Specify verbosity when parsing GNAT Project Files"); + Write_Str (" -vPx Specify verbosity when parsing GNAT Project Files"); Write_Eol; -- Line for -X - Write_Switch_Char; - Write_Str ("Xnm=val Specify an external reference for GNAT Project Files"); + Write_Str (" -Xnm=val Specify an external reference for GNAT " & + "Project Files"); Write_Eol; -- Line for -z - Write_Switch_Char; - Write_Str ("z No main subprogram (zero main)"); + Write_Str (" -z No main subprogram (zero main)"); Write_Eol; Write_Eol; @@ -202,60 +180,57 @@ begin -- Line for -aL - Write_Switch_Char; - Write_Str ("aLdir Skip missing library sources if ali in dir"); + Write_Str (" -aLdir Skip missing library sources if ali in dir"); Write_Eol; -- Line for -A - Write_Switch_Char; - Write_Str ("Adir like -aLdir -aIdir"); + Write_Str (" -Adir like -aLdir -aIdir"); Write_Eol; -- Line for -aO switch - Write_Switch_Char; - Write_Str ("aOdir Specify library/object files search path"); + Write_Str (" -aOdir Specify library/object files search path"); Write_Eol; -- Line for -aI switch - Write_Switch_Char; - Write_Str ("aIdir Specify source files search path"); + Write_Str (" -aIdir Specify source files search path"); Write_Eol; -- Line for -I switch - Write_Switch_Char; - Write_Str ("Idir Like -aIdir -aOdir"); + Write_Str (" -Idir Like -aIdir -aOdir"); Write_Eol; -- Line for -I- switch - Write_Switch_Char; - Write_Str ("I- Don't look for sources & library files"); + Write_Str (" -I- Don't look for sources & library files"); Write_Str (" in the default directory"); Write_Eol; -- Line for -L - Write_Switch_Char; - Write_Str ("Ldir Look for program libraries also in dir"); + Write_Str (" -Ldir Look for program libraries also in dir"); Write_Eol; -- Line for -nostdinc - Write_Switch_Char; - Write_Str ("nostdinc Don't look for sources"); + Write_Str (" -nostdinc Don't look for sources"); Write_Str (" in the system default directory"); Write_Eol; -- Line for -nostdlib - Write_Switch_Char; - Write_Str ("nostdlib Don't look for library files"); + Write_Str (" -nostdlib Don't look for library files"); Write_Str (" in the system default directory"); Write_Eol; + + -- Line for --RTS + + Write_Str (" --RTS=dir specify the default source and object search" + & " path"); + Write_Eol; Write_Eol; -- General Compiler, Binder, Linker switches @@ -266,20 +241,17 @@ begin -- Line for -cargs - Write_Switch_Char; - Write_Str ("cargs opts opts are passed to the compiler"); + Write_Str (" -cargs opts opts are passed to the compiler"); Write_Eol; -- Line for -bargs - Write_Switch_Char; - Write_Str ("bargs opts opts are passed to the binder"); + Write_Str (" -bargs opts opts are passed to the binder"); Write_Eol; -- Line for -largs - Write_Switch_Char; - Write_Str ("largs opts opts are passed to the linker"); + Write_Str (" -largs opts opts are passed to the linker"); Write_Eol; -- Add usage information for gcc |