]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Fri, 12 Apr 2013 13:31:37 +0000 (15:31 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 12 Apr 2013 13:31:37 +0000 (15:31 +0200)
2013-04-12  Ed Schonberg  <schonberg@adacore.com>

* sem_attr.adb (Check_Stream_Attribute): If restriction
No_Default_Stream_Attributes is active, it is illegal to use a
predefined elementary type stream attribute either by itself,
or more importantly as part of the attribute subprogram for a
composite type. However, if the broader restriction No_Streams
is active, then stream operations are not generated, and there
is no error.

2013-04-12  Robert Dewar  <dewar@adacore.com>

* gnatbind.adb: Minor reformatting.

From-SVN: r197914

gcc/ada/ChangeLog
gcc/ada/gnatbind.adb
gcc/ada/sem_attr.adb

index 9c04df5c2932b5b8e4a83db72f7edadc94b41b08..4e3e9f21dcc0f53632c476d7b38606553f655295 100644 (file)
@@ -1,3 +1,17 @@
+2013-04-12  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_attr.adb (Check_Stream_Attribute): If restriction
+       No_Default_Stream_Attributes is active, it is illegal to use a
+       predefined elementary type stream attribute either by itself,
+       or more importantly as part of the attribute subprogram for a
+       composite type. However, if the broader restriction No_Streams
+       is active, then stream operations are not generated, and there
+       is no error.
+
+2013-04-12  Robert Dewar  <dewar@adacore.com>
+
+       * gnatbind.adb: Minor reformatting.
+
 2013-04-12  Bob Duff  <duff@adacore.com>
 
        * sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a
index b332b13b85a5b75b2ae5b8aa3704918e057f53d8..63e7c142ceeeac627211861c15fab01f9e93ae56 100644 (file)
@@ -176,6 +176,9 @@ procedure Gnatbind is
          Max_Storage_At_Blocking         => True,
          --  Not checkable at compile time
 
+         --  The following three should not be partition-wide, so the
+         --  following tests are junk to be removed eventually ???
+
          No_Specification_Of_Aspect      => True,
          --  Requires a parameter value, not a count
 
index 770be4e811f4e002853b2e54d88a3e3565c95838..a71cdd1bb8eb54897fc0e13227ea7cc5f8e1be37 100644 (file)
@@ -1746,9 +1746,13 @@ package body Sem_Attr is
          --  AI05-0057: if restriction No_Default_Stream_Attributes is active,
          --  it is illegal to use a predefined elementary type stream attribute
          --  either by itself, or more importantly as part of the attribute
-         --  subprogram for a composite type.
+         --  subprogram for a composite type. However, if the broader
+         --  restriction No_Streams is active, stream operations are not
+         --  generated, and there is no error.
 
-         if Restriction_Active (No_Default_Stream_Attributes) then
+         if Restriction_Active (No_Default_Stream_Attributes)
+           and then not Restriction_Active (No_Streams)
+         then
             declare
                T : Entity_Id;