]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Tue, 25 Feb 2014 15:11:39 +0000 (16:11 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 25 Feb 2014 15:11:39 +0000 (16:11 +0100)
2014-02-25  Robert Dewar  <dewar@adacore.com>

* exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
reformatting.

2014-02-25  Ed Schonberg  <schonberg@adacore.com>

* freeze.adb (Freeze_Entity): If the return type of a function
is a limited view, and the non-limited view has not been seen yet,
defer freezing to some later point.

2014-02-25  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb: Minor reformatting.

2014-02-25  Robert Dewar  <dewar@adacore.com>

* s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
snames.ads-tmpl: Change Compiler_Unit everywhere to
Compiler_Unit_Warning.

From-SVN: r208135

76 files changed:
gcc/ada/ChangeLog
gcc/ada/exp_ch6.adb
gcc/ada/exp_ch7.adb
gcc/ada/freeze.adb
gcc/ada/s-excdeb.ads
gcc/ada/s-except.ads
gcc/ada/s-exctab.adb
gcc/ada/s-exctab.ads
gcc/ada/s-finmas.ads
gcc/ada/s-htable.adb
gcc/ada/s-htable.ads
gcc/ada/s-imenne.adb
gcc/ada/s-imenne.ads
gcc/ada/s-imgenu.adb
gcc/ada/s-imgenu.ads
gcc/ada/s-mastop.adb
gcc/ada/s-mastop.ads
gcc/ada/s-memory-vms_64.adb
gcc/ada/s-memory-vms_64.ads
gcc/ada/s-memory.adb
gcc/ada/s-memory.ads
gcc/ada/s-os_lib.adb
gcc/ada/s-os_lib.ads
gcc/ada/s-parame.adb
gcc/ada/s-parame.ads
gcc/ada/s-purexc.ads
gcc/ada/s-restri.adb
gcc/ada/s-restri.ads
gcc/ada/s-rident.ads
gcc/ada/s-secsta.adb
gcc/ada/s-secsta.ads
gcc/ada/s-soflin.adb
gcc/ada/s-soflin.ads
gcc/ada/s-sopco3.adb
gcc/ada/s-sopco3.ads
gcc/ada/s-sopco4.adb
gcc/ada/s-sopco4.ads
gcc/ada/s-sopco5.adb
gcc/ada/s-sopco5.ads
gcc/ada/s-spsufi.ads
gcc/ada/s-stache.adb
gcc/ada/s-stache.ads
gcc/ada/s-stalib.adb
gcc/ada/s-stalib.ads
gcc/ada/s-stoele.adb
gcc/ada/s-stoele.ads
gcc/ada/s-strcom.adb
gcc/ada/s-strcom.ads
gcc/ada/s-strhas.adb
gcc/ada/s-string.adb
gcc/ada/s-string.ads
gcc/ada/s-strops.adb
gcc/ada/s-strops.ads
gcc/ada/s-ststop.adb
gcc/ada/s-ststop.ads
gcc/ada/s-traceb.adb
gcc/ada/s-traceb.ads
gcc/ada/s-traent.adb
gcc/ada/s-traent.ads
gcc/ada/s-unstyp.ads
gcc/ada/s-utf_32.adb
gcc/ada/s-utf_32.ads
gcc/ada/s-wchcnv.adb
gcc/ada/s-wchcnv.ads
gcc/ada/s-wchcon.adb
gcc/ada/s-wchcon.ads
gcc/ada/s-wchjis.adb
gcc/ada/s-wchjis.ads
gcc/ada/sem_ch11.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch4.adb
gcc/ada/sem_ch5.adb
gcc/ada/sem_prag.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads
gcc/ada/snames.ads-tmpl

index ad3b82d2086bc278ad6c0e902f176771e7399e96..f0a7e218814d53acced8de535f7ad397b26819a2 100644 (file)
@@ -1,3 +1,37 @@
+2014-02-25  Robert Dewar  <dewar@adacore.com>
+
+       * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
+       reformatting.
+
+2014-02-25  Ed Schonberg  <schonberg@adacore.com>
+
+       * freeze.adb (Freeze_Entity): If the return type of a function
+       is a limited view, and the non-limited view has not been seen yet,
+       defer freezing to some later point.
+
+2014-02-25  Robert Dewar  <dewar@adacore.com>
+
+       * sem_ch3.adb: Minor reformatting.
+
+2014-02-25  Robert Dewar  <dewar@adacore.com>
+
+       * s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
+       s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
+       s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
+       s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
+       s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
+       s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
+       s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
+       s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
+       s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
+       s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
+       s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
+       s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
+       s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
+       s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
+       snames.ads-tmpl: Change Compiler_Unit everywhere to
+       Compiler_Unit_Warning.
+
 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
 
        * exp_ch6.adb (Add_Or_Save_Precondition): New routine.
index 4aa43ba10d510992f1e033aceb925861b87b7d0d..74c864a49abb474189e0119739d587e8754425db 100644 (file)
@@ -8671,8 +8671,7 @@ package body Exp_Ch6 is
 
       procedure Collect_Body_Postconditions (Stmts : in out List_Id) is
          procedure Collect_Body_Postconditions_Of_Kind (Post_Nam : Name_Id);
-         --  Process all postconditions of a particular kind denoted by
-         --  Post_Nam.
+         --  Process all postconditions of the kind denoted by Post_Nam
 
          -----------------------------------------
          -- Collect_Body_Postconditions_Of_Kind --
@@ -8716,8 +8715,7 @@ package body Exp_Ch6 is
                              (Item => Check_Prag,
                               List => Stmts);
 
-                        --  When analyzing a generic unit, save the pragma for
-                        --  later.
+                        --  If analyzing a generic unit, save pragma for later
 
                         else
                            Prepend_To_Declarations (Check_Prag);
index dccf8318db7f04ebfc1aacb2c18c5e06db9fab0e..defa273237b251ee4004963addc5b0b3ba7928a2 100644 (file)
@@ -3572,8 +3572,7 @@ package body Exp_Ch7 is
 
             return;
 
-         --  If we have encountered Standard there are no enclosing transient
-         --  scopes.
+         --  If we encounter Standard there are no enclosing transient scopes
 
          elsif Scope_Stack.Table (S).Entity = Standard_Standard then
             exit;
index 789aa660ddc3396f1f1c3c4c17209528fa17c928..73717239033378528252df01433eb05fa0a515af 100644 (file)
@@ -3909,6 +3909,18 @@ package body Freeze is
                      then
                         R_Type := Full_View (R_Type);
                         Set_Etype (E, R_Type);
+
+                     --  If the return type is a limited view and the non-
+                     --  limited view is still incomplete, the function has
+                     --  to be frozen at a later time.
+
+                     elsif Ekind (R_Type) = E_Incomplete_Type
+                       and then From_Limited_With (R_Type)
+                       and then
+                         Ekind (Non_Limited_View (R_Type)) = E_Incomplete_Type
+                     then
+                        Set_Is_Frozen (E, False);
+                        return Result;
                      end if;
 
                      Freeze_And_Append (R_Type, N, Result);
index f0480918390969109e942ab81596ac53bde691c7..4dd94c205833f24d281fa043369e872c7388f408 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2006-2011, Free Software Foundation, Inc.         --
+--          Copyright (C) 2006-2013, 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- --
@@ -33,7 +33,7 @@
 --  It should be compiled without optimization to let debuggers inspect
 --  parameter values reliably from breakpoints on the routines.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.Standard_Library;
 
index b7087c68f697cf2344fd7c4e30b95c8bc702c13e..8bf0284ab19aa275e7d4970e3f0620a6ed4289ce 100644 (file)
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Exceptions is
 
index afd46e96f7d0c2c0afd185dc8e31ba4d1efdd9c5..a94d99a4eba5a0c078c59d56202ba82d5c363c6c 100644 (file)
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.HTable;
 with System.Soft_Links;   use System.Soft_Links;
index c9fe6980b10baa6d6dc2150f6899b1356d82b576..3434fd8cab696e8f972063f4e96d9099c3bb3f50 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1996-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1996-2013, 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- --
@@ -33,7 +33,7 @@
 --  registered exception names, for the implementation of the mapping
 --  of names to exceptions (used for exception streams and attributes)
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.Standard_Library;
 
index f0dd5b8767e1beffa7417f236c13b2b54522d0ce..a94a8f99b608a540ce8e01c6762e875f0d873c6a 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---             Copyright (C) 2011, Free Software Foundation, Inc.           --
+--          Copyright (C) 2011-2013, 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- --
@@ -33,7 +33,7 @@ with Ada.Finalization;
 with System.Storage_Elements;
 with System.Storage_Pools;
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Finalization_Masters is
    pragma Preelaborate;
index b8116f9437d4f8a4edd5d27246ac66479800de55..5330273945746b9af3b7c9c63d8656d44d1d3600 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                    Copyright (C) 1995-2012, AdaCore                      --
+--                    Copyright (C) 1995-2013, AdaCore                      --
 --                                                                          --
 -- 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Unchecked_Deallocation;
 with System.String_Hash;
index 29fb5fbd16355c4a57dd6732c47b702a0a895f94..86fb56352cb3fa1766db2273a85a32697f87a5a5 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 1995-2011, AdaCore                     --
+--                     Copyright (C) 1995-2013, AdaCore                     --
 --                                                                          --
 -- 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- --
@@ -37,7 +37,7 @@
 --  The Static_HTable package provides a more complex interface that allows
 --  complete control over allocation.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.HTable is
    pragma Preelaborate;
index 37ef4a7e65d583ef93dcfe804c41625723aaa36a..9f2a56ea2fbf297de68e835aa162cf0b12240591 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2000-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2000-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Unchecked_Conversion;
 
index bf2ba29b15b937dffd54716c202091e3694f15ee..3726720cd179526234fc279a2fb7337746f32a55 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2000-2011, Free Software Foundation, Inc.         --
+--          Copyright (C) 2000-2013, 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- --
@@ -40,7 +40,7 @@
 --  for bootstrapping with older versions of the compiler which expect to find
 --  functions in this package.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Img_Enum_New is
    pragma Pure;
index 99c6acfa97e1f9b192801555e4ca1bb3ce5bf152..96d1332494c703b9a030bf3b230e61046ff9322b 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2000-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2000-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Unchecked_Conversion;
 
index 24afb3a3ad28491e9058439fcc69cb22bb01eb1d..ef5474a4f3c205e5c482d3c14beb2f978a931ee6 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2000-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2000-2013, 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- --
@@ -41,7 +41,7 @@
 --  these functions. The new compiler will search for procedures in the new
 --  version of the unit.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Img_Enum is
    pragma Pure;
index fba5bb133cf0fb658042e54d3e5c9da0463b4ec0..73be3e9ec15ad462cea3d40e362dffd1cc3e5320 100644 (file)
@@ -7,7 +7,7 @@
 --                                 B o d y                                  --
 --                             (Dummy version)                              --
 --                                                                          --
---          Copyright (C) 1999-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1999-2013, 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- --
 --                                                                          --
 ------------------------------------------------------------------------------
 
---  This dummy version of System.Machine_State_Operations is used
---  on targets for which zero cost exception handling is not implemented.
+--  This dummy version of System.Machine_State_Operations is used on targets
+--  for which zero cost exception handling is not implemented.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.Machine_State_Operations is
 
index 74ff217c693723dcac506b3ad48e63cf5fb75a65..93f06f8f24ad7758989036884d1bf0f2fcd30e9f 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1999-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1999-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 pragma Polling (Off);
 --  We must turn polling off for this unit, because otherwise we get
index f371e977e0a6dbe8dd030e027b721e14918d0066..7a08f7d07994679b20e521fe0483fdd577649742 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2001-2011, Free Software Foundation, Inc.         --
+--          Copyright (C) 2001-2013, 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- --
@@ -41,7 +41,7 @@
 --  you can remove the calls to Abort_Defer.all and Abort_Undefer.all from
 --  this unit.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Exceptions;
 with System.Soft_Links;
index 8a900be8508d5f74e13f2596da87e54536149c97..464446a8b2e18322cde5b3ce885b0e1691d23573 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2001-2011, Free Software Foundation, Inc.         --
+--          Copyright (C) 2001-2013, 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- --
@@ -40,7 +40,7 @@
 --  This unit may be used directly from an application program by providing
 --  an appropriate WITH, and the interface can be expected to remain stable.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Memory is
    pragma Elaborate_Body;
index 3fb1cda9bcb95ce02eb5fcf8b8434a764bf18d8d..b7d37d2688121c17c1866db9322ed886702c3cf7 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2001-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2001-2013, 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- --
@@ -41,7 +41,7 @@
 --  you can remove the calls to Abort_Defer.all and Abort_Undefer.all from
 --  this unit.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Exceptions;
 with System.Soft_Links;
index 4af600205ad44a03a636cdb8e51bb749da856eea..87a129a6903281be63a34d22910336f3069a170f 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2001-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2001-2013, 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- --
@@ -40,7 +40,7 @@
 --  This unit may be used directly from an application program by providing
 --  an appropriate WITH, and the interface can be expected to remain stable.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Memory is
    pragma Elaborate_Body;
index 550c1f5a30105692071ca809bc0ca27616096c4e..f20e0cf5673506aae2517c5845b8a751826d409f 100644 (file)
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Unchecked_Conversion;
 with Ada.Unchecked_Deallocation;
index 274810e0ddb5bd5decf73d580eb19193f65c5a1c..616c8523fc8e828150f5cc593d524c874f5ed1f5 100644 (file)
@@ -51,7 +51,7 @@
 --  Note: a distinct body for this spec is included in the .NET runtime library
 --  and must be kept in sync with changes made in this file.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System;
 with System.Strings;
index ff61b7ee57274d88f8bf90bf58c3b59f5fb97476..9a40c6f6be3def95f47a41220de50ad4f1a375f6 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1995-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1995-2013, 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- --
@@ -31,7 +31,7 @@
 
 --  This is the default (used on all native platforms) version of this package
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.Parameters is
 
index e4317fafcf6b29c6f6cbf4a56a63e7a6778a3fde..4ebfc5cd8779994caa195d9f365fa405a81226cb 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2011, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -46,7 +46,7 @@
 --  Note: do not introduce any pragma Inline statements into this unit, since
 --  otherwise the relinking and rebinding capability would be deactivated.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Parameters is
    pragma Pure;
index a327f48bf0aa2fb8e320e014583787d310e18071..ab05e2ae0ee52b2c44e3109165136239f1b20074 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2000-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2000-2013, 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- --
@@ -33,7 +33,7 @@
 --  an exception message. It can be used from Pure units. This unit is for
 --  internal use only, it is not generally available to applications.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Pure_Exceptions is
    pragma Pure;
index 7ce6da9cc46470d943823d5e8e4b7cf5d6abc08e..bd87b1705ec70ff52ecd6920d8c85c485204d288 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2004-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2004-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.Restrictions is
    use Rident;
index a0cb1e9d2ccd1fbb5995b39dce29b9bc2ca03df3..66c6584a2ac1db3cec62eea21927864123dd947b 100644 (file)
@@ -38,7 +38,7 @@
 --  with names discarded, so that we do not have image tables for the
 --  large restriction enumeration types at run time.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.Rident;
 
index 732ce9dbfe5951e8861df58fedb2a12358f6f41c..a7334c8f87493301cf741cad79de4021681da6bd 100644 (file)
@@ -69,7 +69,7 @@
 --  restrictions are ignored, and the consistency checking for restrictions
 --  might be incomplete, which is no big deal.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 generic
 package System.Rident is
index e883721e3096572bd36e9af90c3192a3fef99096..f8142fbe52355848134b7baced8c2b00b016ec8f 100644 (file)
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.Soft_Links;
 with System.Parameters;
index d2da2bcffb16a16fdb243e0efd9dba6ec556700c..a1685e021937e54d3ca55ab12d678eca78e03200 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2011, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.Storage_Elements;
 
index 1da838eba4f7d096dc5166cdcbe71980b6881bfe..2bbc2aa0b36c5e3d2839570de87ece99017fafe5 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 pragma Polling (Off);
 --  We must turn polling off for this unit, because otherwise we get an
index 2592bd1eeb79c122bc33d3db4681793ce4aa3df2..7f3ebe45afa3a427663bb0f8ed676475b7eed2d0 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -37,7 +37,7 @@
 --  initialized to non-tasking versions, and then if the tasking support is
 --  initialized, they are set to the real tasking versions.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Exceptions;
 with System.Stack_Checking;
index 5e7b6bbcc9177e581b054ab1609cb58035b5ac32..9c4e00557ea3991ad657ad0865666921390375c3 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -33,7 +33,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.String_Ops_Concat_3 is
 
index 68b1066c60ab9bf9df2af3b62953a5a9fe87bf25..89dd9cfb8f9ac360fbbadf25e60e8ec1218a3b13 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -35,7 +35,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.String_Ops_Concat_3 is
    pragma Pure;
index 4bfbcc31ccdbea2a2f7ea807d22bf05f5cef9dc4..fc3a7402c442392d6a7d600da0c470a812080a83 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -33,7 +33,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.String_Ops_Concat_4 is
 
index e198bbae81c60dcb83d2dde3d2f2e5bb8249d4cc..79cd3ddfcf896572cb88bf98438305c683b3b101 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -35,7 +35,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.String_Ops_Concat_4 is
    pragma Pure;
index 8467028c6bae18e3cb94dc5e1b90968f69f08167..6be4d5b338b5bb7611a9b10285f7e0f9bce19201 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -33,7 +33,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.String_Ops_Concat_5 is
 
index 3491bb9ad96543e0e4be8fb7ede164b00d8e890f..2521279c4be93c7a6649971fee0c9dc58dc7d0c8 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -35,7 +35,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.String_Ops_Concat_5 is
    pragma Pure;
index 1de738b6f84b4cb80c5f3c7d891746b4f002e1af..c49af44f667610bd9f68b6782af65ddf6af35a87 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2011-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 2011-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Storage_Pools.Subpools.Finalization is
 
index ffad20544815f3346fa44038126ad74fae66e64d..927e0ab154cd4430ea1fbca8c40302eabec0b7d3 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                  B o d y                                 --
 --                                                                          --
---           Copyright (C) 1999-2009, Free Software Foundation, Inc.        --
+--           Copyright (C) 1999-2013, Free Software Foundation, Inc.        --
 --                                                                          --
 -- GNARL 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 --  As noted in the spec, this dummy body is present because otherwise we
 --  have bootstrapping path problems (there used to be a real body).
index 878b8a5270c512cb58aef503396042c405d53c34..374f676df6dc3a4ba63b1627e68b079cd90c167b 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                  S p e c                                 --
 --                                                                          --
---           Copyright (C) 1999-2009, Free Software Foundation, Inc.        --
+--           Copyright (C) 1999-2013, Free Software Foundation, Inc.        --
 --                                                                          --
 -- GNARL 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- --
@@ -35,7 +35,7 @@
 --  This package defines basic types and objects. Operations related to
 --  stack checking can be found in package System.Stack_Checking.Operations.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.Storage_Elements;
 
index ba83b8d9cdc946ff860d3ad3562fb867a94d5e92..1b95c6a3959116b6dd07ff58876698feed39e018 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1995-2011, Free Software Foundation, Inc.         --
+--          Copyright (C) 1995-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 --  The purpose of this body is simply to ensure that the two with'ed units
 --  are properly included in the link. They are not with'ed from the spec
index b1c061809392c165ab4d291256cb152373b746c2..e38f36e556796b98abef0a3cae2968f45d0a69ea 100644 (file)
@@ -44,7 +44,7 @@
 --  package and the packages it references are included in all Ada programs,
 --  together with the included data.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 pragma Polling (Off);
 --  We must turn polling off for this unit, because otherwise we get
index cd3e22ef907c1ef75d19525a86376ae16d5a9754..6a3fe5cfd139e989306e95912f09ec311cd2efa4 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Unchecked_Conversion;
 
index 132482b7502dc223136d993b505a91970cdd9ebc..bf773cb03d43928da23913a143af43ba454ce519 100644 (file)
@@ -37,7 +37,7 @@
 --  extra declarations that can be introduced into System using Extend_System.
 --  It is a good idea to avoid use clauses for this package.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Storage_Elements is
    pragma Pure;
index 37ccc61380aaaf0f4131b58882eb9f0b809b3670..4388d801e6874b7c021728ddd6b027ce2ab935d3 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2002-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2002-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Unchecked_Conversion;
 
index 6d1a303c560c3720999978627942ace009c67fd6..7458f5da0152aa3f394355637a61318d39cdad27 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2002-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2002-2013, 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- --
@@ -31,7 +31,7 @@
 
 --  This package contains functions for runtime comparisons on strings
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.String_Compare is
 
index 0e86cb66b312060712c6bc0f35f05b2b19b13fc3..6b7b9fea2a62d52c8dcea81ec49563a75e58da90 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---             Copyright (C) 2009, Free Software Foundation, Inc.           --
+--          Copyright (C) 2009-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.String_Hash is
 
index a4ffd91b5cd50c4c3604f4e46f513973b23a026d..d6e32fb51574c8cf40c27724822372e18558f743 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1995-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 1995-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.Strings is
 
index 87b7e8aebef9d021fda84fdc9493e0c4c025fc82..ee05498765542cb12c55d5395b7e573d69fc6d53 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1995-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 1995-2013, 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- --
@@ -35,7 +35,7 @@
 --  be used by other predefined packages. User access to this package is via
 --  a renaming of this package in GNAT.String (file g-string.ads).
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Unchecked_Deallocation;
 
index 44a6a76bf1585de9157a1be9b90c43ad2e77c4c4..a822ea48c4461a6af221616769004160f45bf2fe 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -33,7 +33,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.String_Ops is
 
index 54ac74578a6a7fca0de3a75a97893789312642cc..8e6d7b44b6fb2f15f1a0f59626c1012e35824289 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -36,7 +36,7 @@
 --  which now generates concatenation inline. It is retained only because
 --  it may be used during bootstrapping using old versions of the compiler.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.String_Ops is
    pragma Pure;
index f57ff09fa6a693597f6bc84ea94b7166d248dba3..612ed0c8ac11a89cf8661b99258a68df691ed0a6 100644 (file)
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Streams;              use Ada.Streams;
 with Ada.Streams.Stream_IO;    use Ada.Streams.Stream_IO;
index a3fb3c6e6b2dd8b3d20933da0f22a8f2a61388ea..8a58356e0bd345701c75681463d4169de83b642d 100644 (file)
@@ -63,7 +63,7 @@
 --  handles versions of System.Stream_Attributes (in particular the XDR version
 --  found in s-stratt-xdr) which do not permit block io optimization.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Streams;
 
index d4de95d7e055ea32fbec49090041fef66e5b3917..b32e2a1b075db7a7eb66468e28f35da082e2b512 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1999-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1999-2013, 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- --
@@ -34,7 +34,7 @@
 --  Note: this unit must be compiled using -fno-optimize-sibling-calls.
 --  See comment below in body of Call_Chain for details on the reason.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.Traceback is
 
index 0119b700a4447752c8afc1a7da706546c54ee8eb..fc5cfb2a899d6b4efbaf1e443c5dcd47a32238a4 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1999-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1999-2013, 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- --
@@ -33,7 +33,7 @@
 --  execution location. The traceback shows the locations of calls in the call
 --  chain, up to either the top or a designated number of levels.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 pragma Polling (Off);
 --  We must turn polling off for this unit, because otherwise we get
index 343d30c8906ea3363d551a096745b12c3b53aa89..cedb93280d6c3336f1821a91782f5ff0b9513acd 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2003-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2003-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.Traceback_Entries is
 
index cf24e0db52a3affe2db35fb36a46306800f3db8e..1dbb9ec15d667d7b878e59ac03e1679fe8c28d18 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2003-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2003-2013, Free Software Foundation, Inc.         --
 --                                                                          --
 -- This specification is derived from the Ada Reference Manual for use with --
 -- GNAT. The copyright notice above, and the license provisions that follow --
@@ -38,7 +38,7 @@
 --  version of the package, an entry is a mere code location representing the
 --  address of a call instruction part of the call-chain.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Traceback_Entries is
    pragma Preelaborate;
index bbd916a2ca12296eb321465c8dbfbe4594018517..ee77af897acb261b88b132d3fb8633f149386cb3 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -35,9 +35,7 @@
 --  also contains some related definitions for other specialized types
 --  used by the compiler in connection with packed array types.
 
-pragma Warnings (Off);
-pragma Compiler_Unit;
-pragma Warnings (On);
+pragma Compiler_Unit_Warning;
 
 package System.Unsigned_Types is
    pragma Pure;
index 4bf10558a816b0e74fe01b52ebe5430f50a121bd..cb41b2fede611c8946957943b86a86b3ef2012a2 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2005-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 2005-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 pragma Style_Checks (Off);
 --  Allow long lines in this unit. Note this could be more specific, but we
index 4e6a67fb91f9922e317dc3dc01bc6ca70f2d404b..1d01fa5d4a6f4070cf2cc2b7b63ed7c5c939e0d1 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2005-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 2005-2013, 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- --
@@ -41,7 +41,7 @@
 --  the same services. The reason this package is in System is so that it can
 --  with'ed by other packages in the Ada and System hierarchies.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.UTF_32 is
    pragma Pure;
index 893232e605a96ffc6dd0cacb8038ca46ba1f4456..345af8f57d7043510f00706f0fd59833fd35cc7d 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Interfaces;     use Interfaces;
 with System.WCh_Con; use System.WCh_Con;
index 887e2198cb7dec6a2cd410ee49b9c5a7211b772b..82a620aa182d51a9467132bee75dccc85b4b69d0 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -43,7 +43,7 @@
 --  This unit may be used directly from an application program by providing
 --  an appropriate WITH, and the interface can be expected to remain stable.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.WCh_Con;
 
index ac37a92f6828fbe23d7aa94965aaa62b3ecf8431..55acd048adf3cfd39298033e5f7a9b2029e11acd 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2005-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 2005-2013, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.WCh_Con is
 
index 1a370698c08cce269e9d10a8d58005611a8eb221..54d4d777d9cad805dce3a05adac0b6981549ab5b 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -36,7 +36,7 @@
 --  This unit may be used directly from an application program by providing
 --  an appropriate WITH, and the interface can be expected to remain stable.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.WCh_Con is
    pragma Pure;
index 73282796c8e4e05aababa6ad32c923d346eeb52d..6b4941c8d3fe5129c1a5338f6e31a02197a40ebf 100644 (file)
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.WCh_JIS is
 
index b91839704c2db47b20166be5c77551a983c8a993..58b4bf1d33abf3b3ed5aad0d2c5689afbfc32cc1 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2013, 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- --
@@ -32,7 +32,7 @@
 --  This package contains routines used for converting between internal
 --  JIS codes and the two external forms we support (EUC and Shift-JIS)
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.WCh_JIS is
    pragma Pure;
index f96a91b38b51d87a01636e409940fc272e954562..a712fedd83f98087fd31a5f5ab66a0374f72c01f 100644 (file)
@@ -435,6 +435,10 @@ package body Sem_Ch11 is
       Exception_Name : Entity_Id        := Empty;
 
    begin
+      if Comes_From_Source (N) then
+         Check_Compiler_Unit (N);
+      end if;
+
       Check_SPARK_Restriction ("raise expression is not allowed", N);
 
       --  Check exception restrictions on the original source
@@ -461,7 +465,6 @@ package body Sem_Ch11 is
       --  Deal with RAISE WITH case
 
       if Present (Expression (N)) then
-         Check_Compiler_Unit (Expression (N));
          Analyze_And_Resolve (Expression (N), Standard_String);
       end if;
 
@@ -629,7 +632,6 @@ package body Sem_Ch11 is
          --  Deal with RAISE WITH case
 
          if Present (Expression (N)) then
-            Check_Compiler_Unit (Expression (N));
             Analyze_And_Resolve (Expression (N), Standard_String);
          end if;
       end if;
index 358bc359a69a1f42916c8169796efa83f5455d8b..e7c9167b460c322c3a571c1e88ffe0395c7e4980 100644 (file)
@@ -1245,6 +1245,7 @@ package body Sem_Ch3 is
       --  be updated when the full type declaration is seen. This only applies
       --  to incomplete types declared in some enclosing scope, not to limited
       --  views from other packages.
+
       --  Prior to Ada 2012, access to functions can only have in_parameters.
 
       if Present (Formals) then
@@ -9707,8 +9708,7 @@ package body Sem_Ch3 is
             end if;
          end if;
 
-         --  Ada 2012 (AI05-0030): Perform some checks related to pragma
-         --  Implemented
+         --  Ada 2012 (AI05-0030): Perform checks related to pragma Implemented
 
          --  Subp is an expander-generated procedure which maps an interface
          --  alias to a protected wrapper. The interface alias is flagged by
@@ -10568,15 +10568,14 @@ package body Sem_Ch3 is
                --  the full view is tagged: must disallow discriminants with
                --  defaults, unless compiling for Ada 2012, which allows a
                --  limited tagged type to have defaulted discriminants (see
-               --  AI05-0214). However, suppress the error here if it was
-               --  already reported on the default expression of the partial
-               --  view.
+               --  AI05-0214). However, suppress error here if it was already
+               --  reported on the default expression of the partial view.
 
                if Is_Tagged_Type (T)
-                    and then Present (Expression (Parent (D)))
-                    and then (not Is_Limited_Type (Current_Scope)
-                               or else Ada_Version < Ada_2012)
-                    and then not Error_Posted (Expression (Parent (D)))
+                 and then Present (Expression (Parent (D)))
+                 and then (not Is_Limited_Type (Current_Scope)
+                            or else Ada_Version < Ada_2012)
+                 and then not Error_Posted (Expression (Parent (D)))
                then
                   if Ada_Version >= Ada_2012 then
                      Error_Msg_N
@@ -15424,6 +15423,7 @@ package body Sem_Ch3 is
                Error_Msg_NE
                  ("full declaration of } must be a tagged type ", Id, Prev);
             end if;
+
          else
             if Ada_Version >= Ada_2012
               and then Nkind (N) = N_Private_Type_Declaration
@@ -15470,9 +15470,9 @@ package body Sem_Ch3 is
                                 N_Protected_Type_Declaration)
            and then
              (Ada_Version < Ada_2012
-                or else not Is_Incomplete_Type (Prev)
-                or else not Nkind_In (N, N_Private_Type_Declaration,
-                                         N_Private_Extension_Declaration))
+               or else not Is_Incomplete_Type (Prev)
+               or else not Nkind_In (N, N_Private_Type_Declaration,
+                                        N_Private_Extension_Declaration))
          then
             --  Completion must be a full type declarations (RM 7.3(4))
 
@@ -15681,7 +15681,7 @@ package body Sem_Ch3 is
                        or else Present (Class_Wide_Type (Prev)))
          then
             --  Ada 2012 (AI05-0162): A private type may be the completion of
-            --  an incomplete type
+            --  an incomplete type.
 
             if Ada_Version >= Ada_2012
               and then Is_Incomplete_Type (Prev)
index 52845b4e511f4b4c766977b3c4463289f739f007..62d714e2e45c1e919e6e00d48b52de0caafddc55 100644 (file)
@@ -2668,6 +2668,10 @@ package body Sem_Ch4 is
          Common_Type       : Entity_Id := Empty;
 
       begin
+         if Comes_From_Source (N) then
+            Check_Compiler_Unit (N);
+         end if;
+
          Analyze (L);
          Candidate_Interps := L;
 
@@ -2745,9 +2749,7 @@ package body Sem_Ch4 is
    begin
       Analyze_Expression (L);
 
-      if No (R)
-        and then Ada_Version >= Ada_2012
-      then
+      if No (R) and then Ada_Version >= Ada_2012 then
          Analyze_Set_Membership;
          return;
       end if;
@@ -7029,11 +7031,16 @@ package body Sem_Ch4 is
       --  Note that there may be named associations, in which case the node
       --  was rewritten earlier as a call, and has been transformed back into
       --  an indexed expression to share the following processing.
+
       --  The generalized indexing node is the one on which analysis and
       --  resolution take place. Before expansion the original node is replaced
       --  with the generalized indexing node, which is a call, possibly with
       --  a dereference operation.
 
+      if Comes_From_Source (N) then
+         Check_Compiler_Unit (N);
+      end if;
+
       declare
          Arg : Node_Id;
       begin
index 30c26f0dc07fb67bec201a5df0169a2cea3c01dc..b864433bbd840eff1efe49cb9eb1c94e99dfaf27 100644 (file)
@@ -1052,7 +1052,7 @@ package body Sem_Ch5 is
         Generic_Check_Choices
           (Process_Empty_Choice      => No_OP,
            Process_Non_Static_Choice => Non_Static_Choice_Error,
-           Process_Associated_Node   => No_Op);
+           Process_Associated_Node   => No_OP);
       use Check_Case_Choices;
       --  Instantiation of the generic choice processing package
 
index a5eaf1304bd97f09fa912c5c0859b0fb0f53a416..a1d381c8b901b4ff6e6d73d814a5ce6c05e91ebf 100644 (file)
@@ -2827,6 +2827,10 @@ package body Sem_Prag is
    -- Analyze_Pragma --
    --------------------
 
+   --------------------
+   -- Analyze_Pragma --
+   --------------------
+
    procedure Analyze_Pragma (N : Node_Id) is
       Loc     : constant Source_Ptr := Sloc (N);
       Prag_Id : Pragma_Id;
@@ -12240,11 +12244,39 @@ package body Sem_Prag is
             GNAT_Pragma;
             Process_Compile_Time_Warning_Or_Error;
 
-         -------------------
-         -- Compiler_Unit --
-         -------------------
+         ---------------------------
+         -- Compiler_Unit_Warning --
+         ---------------------------
+
+         --  pragma Compiler_Unit_Warning;
+
+         --  Historical note
+
+         --  Originally, we had only pragma Compiler_Unit, and it resulted in
+         --  errors not warnings. This means that we had introduced a big extra
+         --  inertia to compiler changes, since even if we implemented a new
+         --  feature, and even if all versions to be used for bootstrapping
+         --  implemented this new feature, we could not use it, since old
+         --  compilers would give errors for using this feature in units
+         --  having Compiler_Unit pragmas.
+
+         --  By changing Compiler_Unit to Compiler_Unit_Warning, we solve the
+         --  problem. We no longer have any units mentioning Compiler_Unit,
+         --  so old compilers see Compiler_Unit_Warning which is unrecognized,
+         --  and thus generates a warning which can be ignored. So that deals
+         --  with the problem of old compilers not implementing the newer form
+         --  of the pragma.
+
+         --  Newer compilers recognize the new pragma, but generate warning
+         --  messages instead of errors, which again can be ignored in the
+         --  case of an old compiler which implements a wanted new feature
+         --  but at the time felt like warning about it for older compilers.
+
+         --  We retain Compiler_Unit so that new compilers can be used to build
+         --  older run-times that use this pragma. That's an unusual case, but
+         --  it's easy enough to handle, so why not?
 
-         when Pragma_Compiler_Unit =>
+         when Pragma_Compiler_Unit | Pragma_Compiler_Unit_Warning =>
             GNAT_Pragma;
             Check_Arg_Count (0);
             Set_Is_Compiler_Unit (Get_Source_Unit (N));
@@ -25521,6 +25553,7 @@ package body Sem_Prag is
       Pragma_Compile_Time_Error             => -1,
       Pragma_Compile_Time_Warning           => -1,
       Pragma_Compiler_Unit                  =>  0,
+      Pragma_Compiler_Unit_Warning          =>  0,
       Pragma_Complete_Representation        =>  0,
       Pragma_Complex_Representation         =>  0,
       Pragma_Component_Alignment            => -1,
index d33c235e9cd435592e61f1a0700c3c3718278319..f08681ade7730bc64474c26288931d25ee5bb68a 100644 (file)
@@ -5640,8 +5640,9 @@ package body Sem_Util is
 
             if Nkind (Constr) = N_Loop_Statement
               and then Present (Iteration_Scheme (Constr))
-              and then Nkind (Iterator_Specification (Iteration_Scheme
-                         (Constr))) = N_Iterator_Specification
+              and then Nkind (Iterator_Specification
+                                (Iteration_Scheme (Constr))) =
+                                                 N_Iterator_Specification
             then
                return S;
             end if;
index 86a2b5260093e4c77641883461127864ab5464db..839268185abed98e058dd8b12bdd18e01aa4662a 100644 (file)
@@ -46,8 +46,7 @@ package Sem_Util is
    procedure Add_Block_Identifier (N : Node_Id; Id : out Entity_Id);
    --  Given a block statement N, generate an internal E_Block label and make
    --  it the identifier of the block. Id denotes the generated entity. If the
-   --  block already has an identifier, Id denotes the entity of the existing
-   --  label.
+   --  block already has an identifier, Id returns the entity of its label.
 
    procedure Add_Contract_Item (Prag : Node_Id; Id : Entity_Id);
    --  Add pragma Prag to the contract of an entry, a package [body], a
index fb3660024c1747390e0240a9b43ffb5ace92529a..173f73430b4363271caec49d72fe364b355925af 100644 (file)
@@ -374,6 +374,7 @@ package Snames is
    Name_Compile_Time_Error             : constant Name_Id := N + $; -- GNAT
    Name_Compile_Time_Warning           : constant Name_Id := N + $; -- GNAT
    Name_Compiler_Unit                  : constant Name_Id := N + $; -- GNAT
+   Name_Compiler_Unit_Warning          : constant Name_Id := N + $; -- GNAT
    Name_Component_Alignment            : constant Name_Id := N + $; -- GNAT
    Name_Convention_Identifier          : constant Name_Id := N + $; -- GNAT
    Name_Debug_Policy                   : constant Name_Id := N + $; -- GNAT
@@ -1730,6 +1731,7 @@ package Snames is
       Pragma_Compile_Time_Error,
       Pragma_Compile_Time_Warning,
       Pragma_Compiler_Unit,
+      Pragma_Compiler_Unit_Warning,
       Pragma_Component_Alignment,
       Pragma_Convention_Identifier,
       Pragma_Debug_Policy,