]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lib.ads, [...]: Implement pragma Compiler_Unit_Warning...
authorArnaud Charlet <charlet@gcc.gnu.org>
Tue, 25 Feb 2014 15:15:44 +0000 (16:15 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 25 Feb 2014 15:15:44 +0000 (16:15 +0100)
2014-02-25  Robert Dewar  <dewar@adacore.com>

* lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
Compiler_Unit_Warning, change Compiler_Unit everywhere to
Compiler_Unit_Warning.

2014-02-25  Sergey Rybin  <rybin@adacore.com frybin>

* sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
in ASIS mode aggregates that are used as aspect definitions.

From-SVN: r208137

65 files changed:
gcc/ada/ChangeLog
gcc/ada/a-chlat1.ads
gcc/ada/a-clrefi.adb
gcc/ada/a-clrefi.ads
gcc/ada/a-comlin.adb
gcc/ada/a-comlin.ads
gcc/ada/a-elchha.adb
gcc/ada/a-elchha.ads
gcc/ada/a-except.adb
gcc/ada/a-except.ads
gcc/ada/a-ioexce.ads
gcc/ada/a-strhas.ads
gcc/ada/aspects.adb
gcc/ada/aspects.ads
gcc/ada/back_end.adb
gcc/ada/errout.ads
gcc/ada/g-byorma.adb
gcc/ada/g-byorma.ads
gcc/ada/g-dyntab.adb
gcc/ada/g-dyntab.ads
gcc/ada/g-hesora.adb
gcc/ada/g-hesora.ads
gcc/ada/g-htable.adb
gcc/ada/g-htable.ads
gcc/ada/g-spchge.adb
gcc/ada/g-spchge.ads
gcc/ada/g-speche.adb
gcc/ada/g-speche.ads
gcc/ada/g-u3spch.adb
gcc/ada/g-u3spch.ads
gcc/ada/gnat_rm.texi
gcc/ada/lib.ads
gcc/ada/par-prag.adb
gcc/ada/restrict.adb
gcc/ada/s-addope.adb
gcc/ada/s-addope.ads
gcc/ada/s-assert.adb
gcc/ada/s-assert.ads
gcc/ada/s-bitops.adb
gcc/ada/s-bitops.ads
gcc/ada/s-carun8.adb
gcc/ada/s-carun8.ads
gcc/ada/s-casuti.adb
gcc/ada/s-casuti.ads
gcc/ada/s-conca2.adb
gcc/ada/s-conca2.ads
gcc/ada/s-conca3.adb
gcc/ada/s-conca3.ads
gcc/ada/s-conca4.adb
gcc/ada/s-conca4.ads
gcc/ada/s-conca5.adb
gcc/ada/s-conca5.ads
gcc/ada/s-conca6.adb
gcc/ada/s-conca6.ads
gcc/ada/s-conca7.adb
gcc/ada/s-conca7.ads
gcc/ada/s-conca8.adb
gcc/ada/s-conca8.ads
gcc/ada/s-conca9.adb
gcc/ada/s-conca9.ads
gcc/ada/s-crc32.adb
gcc/ada/s-crc32.ads
gcc/ada/s-crtl.ads
gcc/ada/s-excdeb.adb
gcc/ada/sem_prag.adb

index f0a7e218814d53acced8de535f7ad397b26819a2..bfd1657fe778a4223bb7be36bac6bedce2884110 100644 (file)
@@ -1,3 +1,26 @@
+2014-02-25  Robert Dewar  <dewar@adacore.com>
+
+       * lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
+       s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
+       s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
+       s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
+       g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
+       s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
+       a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
+       s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
+       a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
+       s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
+       a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
+       s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
+       s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
+       Compiler_Unit_Warning, change Compiler_Unit everywhere to
+       Compiler_Unit_Warning.
+
+2014-02-25  Sergey Rybin  <rybin@adacore.com frybin>
+
+       * sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
+       in ASIS mode aggregates that are used as aspect definitions.
+
 2014-02-25  Robert Dewar  <dewar@adacore.com>
 
        * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
index 056c881a92314b95023f9b7e4eea8fe80739d016..2e20d92e51c4ac040d743f13f45cf52c60ec882a 100644 (file)
@@ -13,9 +13,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
-pragma Compiler_Unit;
-pragma Warnings (On);
+pragma Compiler_Unit_Warning;
 
 package Ada.Characters.Latin_1 is
    pragma Pure;
index 87090258f39ecae6452e5b9a5560e4f5462e2925..4708bf8f34c53f0cb9e7384ded39b9d9b5ebd05d 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2007-2012, Free Software Foundation, Inc.         --
+--          Copyright (C) 2007-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_Deallocation;
 
index fdefafcccc9f42019a3a5876127b307ad3b7a784..f4ce6df2b0c08db60e54d274e59f9cf763467891 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2007-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 2007-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 @@
 --  Using a response file allow passing a set of arguments to an executable
 --  longer than the maximum allowed by the system on the command line.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.Strings;
 
index b29693638d6e37cbe1d957b0f08780f18cafe066..07905b80e63e1ef7d4bfccea4bc437b38e2c6fc7 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 System; use System;
 
index 55d0a500525003b353f17d38885665d6f892e01c..42ca589da47f6ba1275de0483d4ab47471fbdcd9 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2010, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-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 --
@@ -33,7 +33,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package Ada.Command_Line is
    pragma Preelaborate;
index 087e22f4ffbf4dca6ece9b429f95d02aa049b30a..f029c3bd2d202b64c3ce54e3b0674c53182c0ed5 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- --
@@ -31,9 +31,7 @@
 
 --  Default version for most targets
 
-pragma Warnings (Off);
-pragma Compiler_Unit;
-pragma Warnings (On);
+pragma Compiler_Unit_Warning;
 
 with System.Standard_Library; use System.Standard_Library;
 with System.Soft_Links;
index 8cbba63ee7cbe2e5ed61d624c1d183dbf8be1434..1e36373baa78b97373dc0b3b6ea48d4dbe494a83 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.         --
 --                                                                          --
 -- 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,9 +31,7 @@
 
 --  Last chance handler. Unhandled exceptions are passed to this routine
 
-pragma Warnings (Off);
-pragma Compiler_Unit;
-pragma Warnings (On);
+pragma Compiler_Unit_Warning;
 
 procedure Ada.Exceptions.Last_Chance_Handler
   (Except :  Exception_Occurrence);
index a90cfc707852cd6f774e16cb68e4cc567960a27e..9e4b1e8e4ce6dde653e4a25cd6266effd2293ccb 100644 (file)
@@ -40,7 +40,7 @@
 --  2005 functionality is required. In particular, it is used for building
 --  run times on all targets.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 pragma Style_Checks (All_Checks);
 --  No subprogram ordering check, due to logical grouping
index 512466714a299aea25ed4f23e3d88157b54ca04e..1228bf5fae5eaa68190f4cf3a41316d0adcf73ca 100644 (file)
@@ -45,7 +45,7 @@
 --  2005 functionality is required. In particular, it is used for building
 --  run times on all targets.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 pragma Polling (Off);
 --  We must turn polling off for this unit, because otherwise we get
index 44865ab6649570b02758199e14b1f30db1c07ef6..7fec3934ac50b417daa5e85be2b996aa20474281 100644 (file)
@@ -13,7 +13,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package Ada.IO_Exceptions is
    pragma Pure;
index 579307a5f6670b048d1ba93d4d0c6cd557df43b9..2411a5240972d2c5eafd0cfda3c6975e3cfe13d5 100644 (file)
@@ -13,7 +13,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Ada.Containers;
 
index fd044fef07f22be476ac074910a0c9137b009f7e..cc8d2f93d82282134d47516f7b67710c32c52430 100644 (file)
@@ -502,7 +502,6 @@ package body Aspects is
     Aspect_Atomic_Components            => Aspect_Atomic_Components,
     Aspect_Attach_Handler               => Aspect_Attach_Handler,
     Aspect_Bit_Order                    => Aspect_Bit_Order,
-    Aspect_Compiler_Unit                => Aspect_Compiler_Unit,
     Aspect_Component_Size               => Aspect_Component_Size,
     Aspect_Constant_Indexing            => Aspect_Constant_Indexing,
     Aspect_Contract_Cases               => Aspect_Contract_Cases,
index a5e3bbc06b4edaf64e065d12cb463e75cc621494..ad79cbdbbd7ce17527d4042f53841576f742792d 100644 (file)
@@ -143,7 +143,6 @@ package Aspects is
       --  The following aspects correspond to library unit pragmas
 
       Aspect_All_Calls_Remote,
-      Aspect_Compiler_Unit,                 -- GNAT
       Aspect_Elaborate_Body,
       Aspect_Preelaborate,
       Aspect_Pure,
@@ -217,7 +216,6 @@ package Aspects is
      (Aspect_Abstract_State           => True,
       Aspect_Async_Readers            => True,
       Aspect_Async_Writers            => True,
-      Aspect_Compiler_Unit            => True,
       Aspect_Contract_Cases           => True,
       Aspect_Depends                  => True,
       Aspect_Dimension                => True,
@@ -377,7 +375,6 @@ package Aspects is
       Aspect_Atomic_Components            => Name_Atomic_Components,
       Aspect_Attach_Handler               => Name_Attach_Handler,
       Aspect_Bit_Order                    => Name_Bit_Order,
-      Aspect_Compiler_Unit                => Name_Compiler_Unit,
       Aspect_Component_Size               => Name_Component_Size,
       Aspect_Constant_Indexing            => Name_Constant_Indexing,
       Aspect_Contract_Cases               => Name_Contract_Cases,
@@ -585,7 +582,6 @@ package Aspects is
       Aspect_Async_Writers                => Always_Delay,
       Aspect_Asynchronous                 => Always_Delay,
       Aspect_Attach_Handler               => Always_Delay,
-      Aspect_Compiler_Unit                => Always_Delay,
       Aspect_Constant_Indexing            => Always_Delay,
       Aspect_Contract_Cases               => Always_Delay,
       Aspect_CPU                          => Always_Delay,
index a466686527e60dcb2fadddee1c1d1ae085d010d7..bb442ad5e53126b531c6693fb6aae9da190387b8 100644 (file)
@@ -283,7 +283,7 @@ package body Back_End is
       Next_Arg := 1;
       while Next_Arg <= Args'Last loop
          Look_At_Arg : declare
-            Argv     : constant String := Args (Next_Arg).all;
+            Argv : constant String := Args (Next_Arg).all;
 
          begin
             --  If the previous switch has set the Output_File_Name_Present
index 6895a5b57a7ad015f8b2c7574a11d10a5aad6d7d..2a91a13427fcc0d1e6fc7e11f36ad34016bda3ef 100644 (file)
@@ -252,7 +252,8 @@ package Errout is
    --      avoided. This is currently used by the Compile_Time_Warning pragma
    --      to ensure the message for a with'ed unit is output, and for warnings
    --      on ineffective back-end inlining, which is detected in units that
-   --      contain subprograms to be inlined in the main program.
+   --      contain subprograms to be inlined in the main program. It is also
+   --      used by the Compiler_Unit_Warning pragma for similar reasons.
 
    --    Insertion character ? (Question: warning message)
    --      The character ? appearing anywhere in a message makes the message
index 10176a937f70a22c65a2ee219a322cae5d24b17d..0b389f5d4032dc834a1f6e9aed3c08303c39066e 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 2006-2010, AdaCore                     --
+--                     Copyright (C) 2006-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;
 
 package body GNAT.Byte_Order_Mark is
 
index 73e015a9abf894e550010b99b565b3971aa006c7..46db6e475eaf7178948bdb34ccb7740f0157c8ae 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 2006-2010, AdaCore                     --
+--                     Copyright (C) 2006-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- --
@@ -61,7 +61,7 @@
 --     cases depend on the first character of the XML file being < so that the
 --     encoding of this character can be recognized.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package GNAT.Byte_Order_Mark is
 
index 3974a80cb529de66c22470ea866470c3c10fbfb1..634bbbbb4e8922385980fd424aae798c5dff3054 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 2000-2010, AdaCore                     --
+--                     Copyright (C) 2000-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 GNAT.Heap_Sort_G;
 with System;        use System;
index 147ab4103b51f275e1d1c7b4be47fffb9cfd2dae..cfffd2f8947ebadc9f20d75763d79f698b966e09 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 2000-2010, AdaCore                     --
+--                     Copyright (C) 2000-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- --
@@ -45,7 +45,7 @@
 --  GNAT.Table and the GNAT compiler source unit Table to keep as much
 --  coherency as possible between these three related units.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 generic
    type Table_Component_Type is private;
index 09507b0ec38d24b1a2822490bfd334af98ba2c1f..cf7202da3246a6b23a5ec938a522640ae84add1f 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1995-2010, 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;
 
 package body GNAT.Heap_Sort_A is
 
index 779afd559ac5afeed6e333283429c695af1e9a2c..e270172c048df15678e414bc5a82a47268e8da3f 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 1995-2010, 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- --
@@ -40,7 +40,7 @@
 --  worst case and is in place with no additional storage required. See
 --  the body for exact details of the algorithm used.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package GNAT.Heap_Sort_A is
    pragma Preelaborate;
index ef24f765139944ee338847973e07f0314afaa7cd..309de178515d787b017b167634c48ef8f3325076 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1995-2010, 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- --
@@ -34,7 +34,7 @@
 --  supply a dummy body, the old incorrect body is picked up during the
 --  bootstrap process).
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body GNAT.HTable is
 end GNAT.HTable;
index 287455206455263b2b6b1c15e2ecce28ad5b10a9..000756071bffad49ac7cec29e0b46f1653ccdc3a 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- --
@@ -39,7 +39,7 @@
 
 --  See file s-htable.ads for full documentation of the interface
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.HTable;
 
index b19954f36fb581c38e292bec02ff792e75480bb0..bdc38544bb429564b78f75f8c2dce630842bc38c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1998-2010, AdaCore                     --
+--                     Copyright (C) 1998-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;
 
 package body GNAT.Spelling_Checker_Generic is
 
index 287f6312edc23085bda5ecaec0d1e2ca7f42b9b8..908250d25d02a63a513c298171483a7f1d445e20 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 1998-2010, AdaCore                     --
+--                     Copyright (C) 1998-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 @@
 --  codes for ASCII characters in the range 16#20#..16#7F# have their normal
 --  expected encoding values (e.g. the Pos value 16#31# must be digit 1).
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package GNAT.Spelling_Checker_Generic is
    pragma Pure;
index bee00203782d0d0d3123f19aa35fb01e65b19252..0e8c7c46b28da936ce17cc08e59ac7fb886a0fc7 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1998-2010, AdaCore                     --
+--                     Copyright (C) 1998-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 GNAT.Spelling_Checker_Generic;
 
index c37d71e2f9f0b731af85fa14ab2830156ed193ea..7b4da4a2f13853c023a4aaafcf301e1a58c71b8c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 1998-2010, AdaCore                     --
+--                     Copyright (C) 1998-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- --
@@ -34,7 +34,7 @@
 --  This package provides a utility routine for checking for bad spellings
 --  for the case of String arguments.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package GNAT.Spelling_Checker is
    pragma Pure;
index 9e597e28e86d29f420663dfa6d7f45866364b8d7..b6c2a56b3212a473e9fe7af143e045355c95dfea 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1998-2010, AdaCore                     --
+--                     Copyright (C) 1998-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 GNAT.Spelling_Checker_Generic;
 
index f115d377518916fb3e9e00ea904a64559d72dadf..190eabebbfe6843bc0870dc799a09f4112f1c1be 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 1998-2010, AdaCore                     --
+--                     Copyright (C) 1998-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- --
@@ -34,7 +34,7 @@
 --  This package provides a utility routine for checking for bad spellings
 --  for the case of System.WCh_Cnv.UTF_32_String arguments.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.WCh_Cnv;
 
index af51de8adbd0b4263f0d2c133414d77a5c15e125..5a3d7629c3524ef98679fbbd9d27ecf5809c3080 100644 (file)
@@ -123,6 +123,7 @@ Implementation Defined Pragmas
 * Pragma Compile_Time_Error::
 * Pragma Compile_Time_Warning::
 * Pragma Compiler_Unit::
+* Pragma Compiler_Unit_Warning::
 * Pragma Complete_Representation::
 * Pragma Complex_Representation::
 * Pragma Component_Alignment::
@@ -279,7 +280,6 @@ Implementation Defined Pragmas
 Implementation Defined Aspects
 
 * Aspect Abstract_State::
-* Aspect Compiler_Unit::
 * Aspect Contract_Cases::
 * Aspect Depends::
 * Aspect Dimension::
@@ -955,6 +955,7 @@ consideration, the use of these pragmas should be minimized.
 * Pragma Compile_Time_Error::
 * Pragma Compile_Time_Warning::
 * Pragma Compiler_Unit::
+* Pragma Compiler_Unit_Warning::
 * Pragma Complete_Representation::
 * Pragma Complex_Representation::
 * Pragma Component_Alignment::
@@ -2026,13 +2027,28 @@ Syntax:
 pragma Compiler_Unit;
 @end smallexample
 
+@noindent
+This pragma is obsolete. It is equivalent to Compiler_Unit_Warning. It is
+retained so that old versions of the GNAT run-time that use this pragma can
+be compiled with newer versions of the compiler.
+
+@node Pragma Compiler_Unit_Warning
+@unnumberedsec Pragma Compiler_Unit_Warning
+@findex Compiler_Unit_Warning
+@noindent
+Syntax:
+
+@smallexample @c ada
+pragma Compiler_Unit_Warning;
+@end smallexample
+
 @noindent
 This pragma is intended only for internal use in the GNAT run-time library.
 It indicates that the unit is used as part of the compiler build. The effect
-is to disallow constructs (raise with message, conditional expressions etc)
-that would cause trouble when bootstrapping using an older version of GNAT.
-For the exact list of restrictions, see the compiler sources and references
-to Is_Compiler_Unit.
+is to generate warnings for the use of constructs (for example, conditional
+expressions) that would cause trouble when bootstrapping using an older
+version of GNAT. For the exact list of restrictions, see the compiler sources
+and references to Check_Compiler_Unit.
 
 @node Pragma Complete_Representation
 @unnumberedsec Pragma Complete_Representation
@@ -7662,7 +7678,6 @@ clause.
 
 @menu
 * Aspect Abstract_State::
-* Aspect Compiler_Unit::
 * Aspect Contract_Cases::
 * Aspect Depends::
 * Aspect Dimension::
@@ -7706,12 +7721,6 @@ clause.
 @noindent
 This aspect is equivalent to pragma @code{Abstract_State}.
 
-@node Aspect Compiler_Unit
-@unnumberedsec Aspect Compiler_Unit
-@findex Compiler_Unit
-@noindent
-This aspect is equivalent to pragma @code{Compiler_Unit}.
-
 @node Aspect Contract_Cases
 @unnumberedsec Aspect Contract_Cases
 @findex Contract_Cases
index 5c490cd2014c1088e20a98e676867ae5fb904307..cbca3041d27a79af196f96b14ef2da4a4bd36c72 100644 (file)
@@ -328,7 +328,7 @@ package Lib is
 
    --    Is_Compiler_Unit
    --      A Boolean flag, initially set False by default, set to True if a
-   --      pragma Compiler_Unit appears in the unit.
+   --      pragma Compiler_Unit_Warning appears in the unit.
 
    --    Ident_String
    --      N_String_Literal node from a valid pragma Ident that applies to
index 1ccbf0ede2a2dfad7196750fc18b754280952eda..5182d7c34d2ce399d0788d8c2b1f0f73722609d5 100644 (file)
@@ -1154,6 +1154,7 @@ begin
            Pragma_Compile_Time_Error             |
            Pragma_Compile_Time_Warning           |
            Pragma_Compiler_Unit                  |
+           Pragma_Compiler_Unit_Warning          |
            Pragma_Contract_Cases                 |
            Pragma_Convention_Identifier          |
            Pragma_CPP_Class                      |
index 01c5f87a973de5c00378f5ea8126aba5d2711687..01cd907edacf99fb4acb42ea0ab504eefa0c9acc 100644 (file)
@@ -171,7 +171,7 @@ package body Restrict is
    procedure Check_Compiler_Unit (N : Node_Id) is
    begin
       if Is_Compiler_Unit (Get_Source_Unit (N)) then
-         Error_Msg_N ("use of construct not allowed in compiler", N);
+         Error_Msg_N ("use of construct not allowed in compiler!!??", N);
       end if;
    end Check_Compiler_Unit;
 
index 2c957584da4c320f38b61ff2f6fe5c6d38f86198..e38fba4e2baaee4ff997f6cfcb483b22dac337d5 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;
 
 with Ada.Unchecked_Conversion;
 
index 2d3f58946814e0061a1ea4e20722c5f3e0d38d82..7d1866b4f4ddce493e1003cadc6c3a26a32d205e 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          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- --
@@ -40,7 +40,7 @@
 --  inappropriate use by applications programs). In addition, the logical
 --  operations may not be available if type Address is a signed integer.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Address_Operations is
    pragma Pure;
index fbc0f8acbc79d5fd179a7dfffb62650ab61e97be..92bb96f09cfc52ff6efc8a82fca3e77cb7505d3c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          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 Ada.Exceptions;
 with System.Exceptions_Debug;
index c19f7c18a747c522bd4471e7431d325303acf899..38cab863426d5d28ba2fe1c0594e065232f92760 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- --
@@ -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.Assertions is
 
index dbf30ddd54e4a569cf48a726633d564db44e4542..e1129db9a32195dc592c73d8375a46e6e5250452 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---         Copyright (C) 1996-2010, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System;                 use System;
 with System.Unsigned_Types;  use System.Unsigned_Types;
index b7818097738350aacaa0af4a54abcfa472ff161b..edc6035a428ef4853eda0f72e0356161cf35d0ce 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- --
@@ -31,7 +31,7 @@
 
 --  Operations on packed bit strings
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System;
 
index 450e0476504f8e561a98233d1f1eebc95efe38b4..f8d498a08b08b6182aa40ec589346aad057297f4 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 System.Address_Operations; use System.Address_Operations;
 
index aa0d4e0f74054410e97ad207f1779363744f2123..7d9466e5035a96f7ed4742fd638e37a59e00db31 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- --
@@ -32,7 +32,7 @@
 --  This package contains functions for runtime comparisons on arrays whose
 --  elements are 8-bit discrete type values to be treated as unsigned.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Compare_Array_Unsigned_8 is
 
index a5859cf748a797769a2c4696cd27ee829094b2f1..229db4ecc24923e55a24afe5710f9c8cc5916327 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1995-2010, 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;
 
 package body System.Case_Util is
 
index 84b92f6e6bc90d5321a07910411f7f6e20db6afc..9c6150abc64ce1dd2de96561f15cd8108a6b415b 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          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- --
@@ -37,7 +37,7 @@
 --  Note that all the routines in this package are available to the user
 --  via GNAT.Case_Util, which imports all the entities from this package.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Case_Util is
    pragma Pure;
index a1d424b854764c2751041346414ba612133fe7e5..42562dce95bc38e5bb9e20c2c2ba9760416131fe 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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.Concat_2 is
 
index c5c7a2808becef89345dd7ccfb94f7082665c5df..6a1a06166b510cda120d616dba47e1ccc187fd6c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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 a procedure for runtime concatenation of two string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Concat_2 is
 
index 48e4d86512b4c3ad721ccaeac2e2d3195bfb6bf4..27236ee6c0e74fb6a5b6dbc291a824dbb096b4db 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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.Concat_2;
 
index c79e24a39c35c59b82dfad6f25c3f19d8a5e0fec..8b89f3012d47234fe275d1f4d6976bd22f73b4b8 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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 a procedure for runtime concatenation of three string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Concat_3 is
 
index 19fa324834b426ab82853d49c87624d12bf6ee86..559bd7b039315c43b075b43a549ea37c86ee45ac 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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.Concat_3;
 
index 43ce1bc3b2ed43b5473ed6ada9f1184441d80dab..f4c501594193ea74045e2bb1b7b238a370accbb7 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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 a procedure for runtime concatenation of four string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Concat_4 is
 
index f0019961a99a3c1463b521898657fc52ced42337..891452a6e5e0a498660ecf32885946311e30a301 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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.Concat_4;
 
index 996dbf936781209b6e3ea5f46d0dfbc4319c8c6e..c8e2aab2e2fe4ab961ab434c46c24c8f53f0a274 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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 a procedure for runtime concatenation of five string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Concat_5 is
 
index 115b36ec0e4a1b45d67c22f02acb980e099fb3c1..8b5fb3098fbfeb08bff16e53aa8ebd55cbbbad7c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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.Concat_5;
 
index 91cc10e68d526c179b1d1f507951873e8579919b..77af8d313e55f171ed80750528c3e3611284b3fa 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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 a procedure for runtime concatenation of six string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Concat_6 is
 
index 5436fbd8c5eae64a6d562a03a0aaaf55788829c8..f2c43a0482871b586429c821b28b4bfd81f8b83a 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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.Concat_6;
 
index 139a816d23c9f81538d7c95134b83144d57d8fff..9aaf85562e2216890196d64abbc1dae6bd35a601 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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 a procedure for runtime concatenation of seven string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Concat_7 is
 
index dfc5bf7dfdebd543d62eaf69c37325ffb9079325..71bb3fc90a735e748ce1012b6520ba495c25b8be 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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.Concat_7;
 
index 5978a39dca3b76bab7f2a17484842930884a016c..d128ba45354fdb449053f13ec61a1148ff7ddd0b 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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 a procedure for runtime concatenation of eight string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Concat_8 is
 
index 530eee19349c774246181a61e7bf6e31536f2987..bb66da1ab1d41acaa8511ca52bcdefc23e39c13e 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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.Concat_8;
 
index 1890c90e15563c7fde25b6f73ec887056830cff1..bd14a342e4468690b6d4cd6091af940c82253e89 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---            Copyright (C) 2008-2009, Free Software Foundation, Inc.       --
+--            Copyright (C) 2008-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 a procedure for runtime concatenation of eight string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package System.Concat_9 is
 
index b133780a97b1a50a1fef5066119dc926d5ff63f2..433558089ad3b27fa1d990331cc9f85be7f0972c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2001-2010, 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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.CRC32 is
 
index b450c8cd3872cd0b0f83a51fbe0924d3f0306a06..7d9e15859f2c00dabbaf3dd8b5bcf7688105f68a 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- --
@@ -54,7 +54,7 @@
 --  "Computation of Cyclic Redundancy Checks via Table Look-Up", Communications
 --  of the ACM, Vol. 31 No. 8, pp.1008-1013 Aug. 1988. Sarwate, D.V.
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with Interfaces;
 
index cde3dd143daa5073ec94192d7b80c47d6cadd773..e2fe289156fed0dbba4e353e5b8d4fdcc5fe5626 100644 (file)
@@ -31,7 +31,7 @@
 
 --  This package provides the low level interface to the C runtime library
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 with System.Parameters;
 
index 5027bcaee57864e2a94126232b70361016b2a3b3..851d5e60c660a6ac28dea05dcaaf5b8d11a8560a 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---         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- --
@@ -29,7 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Compiler_Unit;
+pragma Compiler_Unit_Warning;
 
 package body System.Exceptions_Debug is
 
index a1d381c8b901b4ff6e6d73d814a5ce6c05e91ebf..c7dd6343da216f96dafebd9662b20e02aee6d3e1 100644 (file)
@@ -1784,9 +1784,11 @@ package body Sem_Prag is
                end if;
 
                --  Do not normalize an erroneous clause because the inputs
-               --  and/or outputs may denote illegal items.
+               --  and/or outputs may denote illegal items. Normalization is
+               --  disabled in ASIS mode as it alters the tree by introducing
+               --  new nodes similar to expansion.
 
-               if Serious_Errors_Detected = Errors then
+               if Serious_Errors_Detected = Errors and then not ASIS_Mode then
                   Normalize_Clause (Clause);
                end if;