Commit 3a336262 by Arnaud Charlet

[multiple changes]

2009-07-15  Sergey Rybin  <rybin@adacore.com>

	* tree_in.ads, tree_io.ads: Add pragma Warnings Off/On for with clause
	to System.OS_Lib to avoid warnings.

2009-07-15  Robert Dewar  <dewar@adacore.com>

	* sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
	reformatting.

2009-07-15  Thomas Quinot  <quinot@adacore.com>

	* g-socthi-mingw.adb: Minor comment addition

	* g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.

From-SVN: r149668
parent 1b73fbc4
2009-07-15 Sergey Rybin <rybin@adacore.com>
* tree_in.ads, tree_io.ads: Add pragma Warnings Off/On for with clause
to System.OS_Lib to avoid warnings.
2009-07-15 Robert Dewar <dewar@adacore.com>
* sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
reformatting.
2009-07-15 Thomas Quinot <quinot@adacore.com>
* g-socthi-mingw.adb: Minor comment addition
* g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
2009-07-15 Robert Dewar <dewar@adacore.com> 2009-07-15 Robert Dewar <dewar@adacore.com>
* g-htable.ads, s-htable.ads: Minor reformatting * g-htable.ads, s-htable.ads: Minor reformatting
......
...@@ -47,7 +47,9 @@ package body GNAT.Sockets.Thin is ...@@ -47,7 +47,9 @@ package body GNAT.Sockets.Thin is
WSAData_Dummy : array (1 .. 512) of C.int; WSAData_Dummy : array (1 .. 512) of C.int;
WS_Version : constant := 16#0202#; WS_Version : constant := 16#0202#;
-- Winsock 2.2
Initialized : Boolean := False; Initialized : Boolean := False;
function Standard_Connect function Standard_Connect
......
...@@ -191,7 +191,7 @@ package GNAT.Sockets.Thin is ...@@ -191,7 +191,7 @@ package GNAT.Sockets.Thin is
(Command : System.Address) return C.int; (Command : System.Address) return C.int;
function WSAStartup function WSAStartup
(WS_Version : Interfaces.C.int; (WS_Version : Interfaces.C.unsigned_short;
WSADataAddress : System.Address) return Interfaces.C.int; WSADataAddress : System.Address) return Interfaces.C.int;
------------------------------------------------------- -------------------------------------------------------
......
...@@ -2979,7 +2979,9 @@ package body Make is ...@@ -2979,7 +2979,9 @@ package body Make is
Comp_Next := Comp_Next + 1; Comp_Next := Comp_Next + 1;
-- Optimize the simple case where the gcc command line looks like -- Optimize the simple case where the gcc command line looks like
-- gcc -c -I. ... -I- file.adb --into-> gcc -c ... file.adb -- gcc -c -I. ... -I- file.adb
-- into
-- gcc -c ... file.adb
if Args (Args'First).all = "-I" & Normalized_CWD if Args (Args'First).all = "-I" & Normalized_CWD
and then Args (Args'Last).all = "-I-" and then Args (Args'Last).all = "-I-"
......
...@@ -50,9 +50,7 @@ with Tbuild; use Tbuild; ...@@ -50,9 +50,7 @@ with Tbuild; use Tbuild;
-- Par -- -- Par --
--------- ---------
function Par function Par (Configuration_Pragmas : Boolean) return List_Id is
(Configuration_Pragmas : Boolean) return List_Id
is
Num_Library_Units : Natural := 0; Num_Library_Units : Natural := 0;
-- Count number of units parsed (relevant only in syntax check only mode, -- Count number of units parsed (relevant only in syntax check only mode,
-- since in semantics check mode only a single unit is permitted anyway) -- since in semantics check mode only a single unit is permitted anyway)
...@@ -1345,8 +1343,8 @@ begin ...@@ -1345,8 +1343,8 @@ begin
Operating_Mode := Save_Operating_Mode; Operating_Mode := Save_Operating_Mode;
Style_Check := Save_Style_Check; Style_Check := Save_Style_Check;
-- If we are at an end of file, and not yet at the right -- If we are at an end of file, and not yet at the right unit,
-- unit, then we have a fatal error. The unit is missing. -- then we have a fatal error. The unit is missing.
if Token = Tok_EOF then if Token = Tok_EOF then
Error_Msg_SC ("file has too few compilation units"); Error_Msg_SC ("file has too few compilation units");
...@@ -1354,9 +1352,9 @@ begin ...@@ -1354,9 +1352,9 @@ begin
end if; end if;
end; end;
-- Here if we are not skipping a file in multiple unit per file -- Here if we are not skipping a file in multiple unit per file mode.
-- mode. Parse the unit that we are interested in. Note that in -- Parse the unit that we are interested in. Note that in check
-- check syntax mode we are interested in all units in the file. -- syntax mode we are interested in all units in the file.
else else
declare declare
...@@ -1364,14 +1362,14 @@ begin ...@@ -1364,14 +1362,14 @@ begin
begin begin
-- If parsing was successful and we are not in check syntax -- If parsing was successful and we are not in check syntax
-- mode, check that language defined units are compiled in -- mode, check that language defined units are compiled in GNAT
-- GNAT mode. For this purpose we do NOT consider renamings -- mode. For this purpose we do NOT consider renamings in annex
-- in annex J as predefined. That allows users to compile -- J as predefined. That allows users to compile their own
-- their own versions of these files, and in particular, -- versions of these files, and in particular, in the VMS
-- in the VMS implementation, the DEC versions can be -- implementation, the DEC versions can be substituted for the
-- substituted for the standard Ada 95 versions. Another -- standard Ada 95 versions. Another exception is System.RPC
-- exception is System.RPC and its children. This allows -- and its children. This allows a user to supply their own
-- a user to supply their own communication layer. -- communication layer.
if Comp_Unit_Node /= Error if Comp_Unit_Node /= Error
and then Operating_Mode = Generate_Code and then Operating_Mode = Generate_Code
...@@ -1385,9 +1383,8 @@ begin ...@@ -1385,9 +1383,8 @@ begin
Name : String (1 .. Uname'Length - 2); Name : String (1 .. Uname'Length - 2);
begin begin
-- Because Unit_Name includes "%s" or "%b", we need to -- Because Unit_Name includes "%s"/"%b", we need to strip
-- strip the last two characters to get the real unit -- the last two characters to get the real unit name.
-- name.
Name := Uname (Uname'First .. Uname'Last - 2); Name := Uname (Uname'First .. Uname'Last - 2);
...@@ -1447,8 +1444,8 @@ begin ...@@ -1447,8 +1444,8 @@ begin
Restore_Opt_Config_Switches (Save_Config_Switches); Restore_Opt_Config_Switches (Save_Config_Switches);
end loop; end loop;
-- Now that we have completely parsed the source file, we can -- Now that we have completely parsed the source file, we can complete
-- complete the source file table entry. -- the source file table entry.
Complete_Source_File_Entry; Complete_Source_File_Entry;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- S p e c -- -- S p e c --
-- -- -- --
-- 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 -- -- 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- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -28,8 +28,7 @@ ...@@ -28,8 +28,7 @@
with Types; use Types; with Types; use Types;
function Par function Par (Configuration_Pragmas : Boolean) return List_Id;
(Configuration_Pragmas : Boolean) return List_Id;
-- Top level parsing routine. There are two cases: -- Top level parsing routine. There are two cases:
-- --
-- If Configuration_Pragmas is False, Par parses a compilation unit in the -- If Configuration_Pragmas is False, Par parses a compilation unit in the
......
...@@ -3356,8 +3356,8 @@ package body Sem_Warn is ...@@ -3356,8 +3356,8 @@ package body Sem_Warn is
-- Start of processing for Warn_On_Known_Condition -- Start of processing for Warn_On_Known_Condition
begin begin
-- Argument replacement in an inlined body can make conditions static. -- Argument replacement in an inlined body can make conditions static.
-- Do not emit warnings in this case. -- Do not emit warnings in this case.
if In_Inlined_Body then if In_Inlined_Body then
return; return;
......
...@@ -2175,7 +2175,7 @@ package Sinfo is ...@@ -2175,7 +2175,7 @@ package Sinfo is
-- Aliased_Present (Flag4) set if ALIASED appears -- Aliased_Present (Flag4) set if ALIASED appears
-- Constant_Present (Flag17) set if CONSTANT appears -- Constant_Present (Flag17) set if CONSTANT appears
-- Null_Exclusion_Present (Flag11) -- Null_Exclusion_Present (Flag11)
-- Object_Definition (Node4) subtype indic./array type def./ access def. -- Object_Definition (Node4) subtype indic./array type def./access def.
-- Expression (Node3) (set to Empty if not present) -- Expression (Node3) (set to Empty if not present)
-- Handler_List_Entry (Node2-Sem) -- Handler_List_Entry (Node2-Sem)
-- Corresponding_Generic_Association (Node5-Sem) -- Corresponding_Generic_Association (Node5-Sem)
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- S p e c -- -- S p e c --
-- -- -- --
-- Copyright (C) 1992-2009 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 -- -- 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- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -34,7 +34,13 @@ ...@@ -34,7 +34,13 @@
-- tools that need to read the tree to the tree reading routines, and is -- tools that need to read the tree to the tree reading routines, and is
-- thus bound as part of such tools. -- thus bound as part of such tools.
-- Note: the pragma Warnings (Off) here is because ASIS compiles this unit
-- without -gnatg, and System.OS_Lib is an implementation unit. This is a
-- temporary kludge which will be better resolved later on ???
pragma Warnings (Off);
with System.OS_Lib; use System.OS_Lib; with System.OS_Lib; use System.OS_Lib;
pragma Warnings (On);
procedure Tree_In (Desc : File_Descriptor); procedure Tree_In (Desc : File_Descriptor);
-- Desc is the file descriptor for the file containing the tree, as written -- Desc is the file descriptor for the file containing the tree, as written
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- S p e c -- -- S p e c --
-- -- -- --
-- Copyright (C) 1992-2009 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 -- -- 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- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -37,7 +37,14 @@ ...@@ -37,7 +37,14 @@
with Types; use Types; with Types; use Types;
with System; use System; with System; use System;
-- Note: the pragma Warnings (Off) here is because ASIS compiles this unit
-- without -gnatg, and System.OS_Lib is an implementation unit. This is a
-- temporary kludge which will be better resolved later on ???
pragma Warnings (Off);
with System.OS_Lib; use System.OS_Lib; with System.OS_Lib; use System.OS_Lib;
pragma Warnings (On);
package Tree_IO is package Tree_IO is
......
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