Commit d409ec50 by Hristian Kirtchev Committed by Arnaud Charlet

bindusg.adb (Display): Correct comment for switch -X.

2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>

	* bindusg.adb (Display): Correct comment for switch -X. Add a line for
	the usage of switch -y.

	* switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
	when switch -y is present.

	* opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
	leap seconds in Ada.Calendar and its children.

From-SVN: r128429
parent 6411a62f
......@@ -232,10 +232,14 @@ package body Bindusg is
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)");
......
......@@ -631,6 +631,11 @@ package Opt is
-- When True the temporary files created by the GNAT driver are not
-- deleted. Set by switch -dn or qualifier /KEEP_TEMPORARY_FILES.
Leap_Seconds_Support : Boolean := False;
-- GNATBIND
-- Set to True to enable leap seconds support in Ada.Calendar and its
-- children.
Link_Only : Boolean := False;
-- GNATMAKE, GPRMAKE
-- Set to True to skip compile and bind steps
......
......@@ -456,6 +456,12 @@ package body Switch.B is
Ptr := Ptr + 1;
Scan_Pos (Switch_Chars, Max, Ptr, Default_Exit_Status, C);
-- Processing for y switch
when 'y' =>
Ptr := Ptr + 1;
Leap_Seconds_Support := True;
-- Processing for z switch
when 'z' =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment