-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2009, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
--- ware Foundation; either version 2, or (at your option) any later ver- --
+-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
--- Public License distributed with GNAT; see file COPYING. If not, write --
--- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
--- Boston, MA 02110-1301, USA. --
+-- Public License distributed with GNAT; see file COPYING3. If not, go to --
+-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
with Osint; use Osint;
with Output; use Output;
+with System.WCh_Con; use System.WCh_Con;
+
package body Bindusg is
Already_Displayed : Boolean := False;
-- Line for D switch
Write_Line (" -Dnn[k|m] Default secondary stack " &
- "size = nnn [kilo|mega] bytes");
+ "size = nn [kilo|mega] bytes");
-- Line for -e switch
-- Line for -E switch
- Write_Line (" -E Store tracebacks in Exception occurrences");
+ Write_Line (" -E Store tracebacks in exception occurrences");
-- The -f switch is voluntarily omitted, because it is obsolete
-- Line for -m switch
- Write_Line (" -mnnn Limit number of detected errors " &
+ Write_Line (" -mnnn Limit number of detected errors/warnings " &
"to nnn (1-999999)");
-- Line for -M switch
Write_Line (" -v Verbose mode. Error messages, " &
"header, summary output to stdout");
- -- Lines for -w switch
+ -- Line for -w switch
Write_Line (" -wx Warning mode. (x=s/e for " &
"suppress/treat as error)");
+ -- Line for -W switch
+
+ Write_Str (" -W? Wide character encoding method (");
+
+ for J in WC_Encoding_Method loop
+ Write_Char (WC_Encoding_Letters (J));
+
+ if J = WC_Encoding_Method'Last then
+ Write_Char (')');
+ else
+ Write_Char ('/');
+ end if;
+ end loop;
+
+ Write_Eol;
+
-- Line for -x switch
Write_Line (" -x Exclude source files (check object " &
"consistency only)");
- -- Line for X switch
+ -- Line for -X switch
Write_Line (" -Xnnn Default exit status value = nnn");
+ -- Line for -y switch
+
+ Write_Line (" -y Enable leap seconds");
+
-- Line for -z switch
Write_Line (" -z No main subprogram (zero main)");
-- Line for --RTS
- Write_Line (" --RTS=dir specify the default source and " &
+ Write_Line (" --RTS=dir Specify the default source and " &
"object search path");
-- Line for sfile