Commit 5c52bf3b by Arnaud Charlet

[multiple changes]

2010-06-22  Thomas Quinot  <quinot@adacore.com>

	* exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
	* einfo.adb (Related_Expression, Set_Related_Expression): Add
	assertions.

2010-06-22  Javier Miranda  <miranda@adacore.com>

	* sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
	reorganization to properly check if the operation has been inherited as
	an abstract operation.

2010-06-22  Ed Falis  <falis@adacore.com>

	* s-osinte-vxworks.ads: Complete previous change.

From-SVN: r161159
parent be5a1b93
2010-06-22 Thomas Quinot <quinot@adacore.com> 2010-06-22 Thomas Quinot <quinot@adacore.com>
* exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
* einfo.adb (Related_Expression, Set_Related_Expression): Add
assertions.
2010-06-22 Javier Miranda <miranda@adacore.com>
* sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
reorganization to properly check if the operation has been inherited as
an abstract operation.
2010-06-22 Ed Falis <falis@adacore.com>
* s-osinte-vxworks.ads: Complete previous change.
2010-06-22 Thomas Quinot <quinot@adacore.com>
* sem_res.adb: Add comment. * sem_res.adb: Add comment.
* projects.texi, gnat_ugn.texi: Remove macro. * projects.texi, gnat_ugn.texi: Remove macro.
......
...@@ -2434,7 +2434,7 @@ package body Einfo is ...@@ -2434,7 +2434,7 @@ package body Einfo is
function Related_Expression (Id : E) return N is function Related_Expression (Id : E) return N is
begin begin
pragma Assert (Is_Type (Id) pragma Assert (Ekind (Id) in Type_Kind
or else Ekind_In (Id, E_Constant, E_Variable)); or else Ekind_In (Id, E_Constant, E_Variable));
return Node24 (Id); return Node24 (Id);
end Related_Expression; end Related_Expression;
...@@ -4893,6 +4893,8 @@ package body Einfo is ...@@ -4893,6 +4893,8 @@ package body Einfo is
procedure Set_Related_Expression (Id : E; V : N) is procedure Set_Related_Expression (Id : E; V : N) is
begin begin
pragma Assert (Ekind (Id) in Type_Kind
or else Ekind_In (Id, E_Constant, E_Variable, E_Void));
Set_Node24 (Id, V); Set_Node24 (Id, V);
end Set_Related_Expression; end Set_Related_Expression;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1992-2009, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2010, 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- --
...@@ -1257,8 +1257,8 @@ package body Exp_Attr is ...@@ -1257,8 +1257,8 @@ package body Exp_Attr is
-- subprogram spec or package. This sequence of code references the -- subprogram spec or package. This sequence of code references the
-- the unsigned constant created in the main program by the binder. -- the unsigned constant created in the main program by the binder.
-- A special exception occurs for Standard, where the string -- A special exception occurs for Standard, where the string returned
-- returned is a copy of the library string in gnatvsn.ads. -- is a copy of the library string in gnatvsn.ads.
when Attribute_Body_Version | Attribute_Version => Version : declare when Attribute_Body_Version | Attribute_Version => Version : declare
E : constant Entity_Id := Make_Temporary (Loc, 'V'); E : constant Entity_Id := Make_Temporary (Loc, 'V');
......
...@@ -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-2010, 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- --
...@@ -610,8 +610,8 @@ package Lib.Writ is ...@@ -610,8 +610,8 @@ package Lib.Writ is
--------------------- ---------------------
-- The reference lines contain information about references from any of the -- The reference lines contain information about references from any of the
-- units in the compilation (including, body version and version -- units in the compilation (including body version and version attributes,
-- attributes, linker options pragmas and source dependencies. -- linker options pragmas and source dependencies).
-- ------------------------------------ -- ------------------------------------
-- -- E External Version References -- -- -- E External Version References --
...@@ -696,7 +696,7 @@ package Lib.Writ is ...@@ -696,7 +696,7 @@ package Lib.Writ is
-- reference data. See the spec of Par_SCO for full details of the format. -- reference data. See the spec of Par_SCO for full details of the format.
---------------------- ----------------------
-- Global_Variables -- -- Global variables --
---------------------- ----------------------
-- The table structure defined here stores one entry for each -- The table structure defined here stores one entry for each
......
...@@ -155,7 +155,7 @@ package System.OS_Interface is ...@@ -155,7 +155,7 @@ package System.OS_Interface is
SIG_DFL : constant := 0; SIG_DFL : constant := 0;
SIG_IGN : constant := 1; SIG_IGN : constant := 1;
subtype sigset_t is System.VxWorks.Ext.sigset_t; type sigset_t is private;
type struct_sigaction is record type struct_sigaction is record
sa_handler : System.Address; sa_handler : System.Address;
...@@ -497,4 +497,5 @@ private ...@@ -497,4 +497,5 @@ private
type clockid_t is new int; type clockid_t is new int;
CLOCK_REALTIME : constant clockid_t := 0; CLOCK_REALTIME : constant clockid_t := 0;
type sigset_t is new System.VxWorks.Ext.sigset_t;
end System.OS_Interface; end System.OS_Interface;
...@@ -1567,15 +1567,15 @@ package body Sem_Ch3 is ...@@ -1567,15 +1567,15 @@ package body Sem_Ch3 is
and then Alias (Prim) = Iface_Prim; and then Alias (Prim) = Iface_Prim;
Next_Elmt (El); Next_Elmt (El);
end loop; end loop;
end;
end if;
-- If the operation was not explicitly overridden, it should -- If the operation was not explicitly overridden, it
-- have been inherited as an abstract operation so Prim can -- should have been inherited as an abstract operation
-- not be Empty at this stage. -- so Prim can not be Empty at this stage.
if No (Prim) then if No (El) then
raise Program_Error; raise Program_Error;
end if;
end;
end if; end if;
Derive_Subprogram Derive_Subprogram
......
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