aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/a-strunb.ads
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2006-10-31 18:49:05 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2006-10-31 18:49:05 +0100
commit9b832db55cf50f7a6739a35ec9f190eccc1d2973 (patch)
tree110c1e22b4771e49735353c1e1897bd00d4288a2 /gcc/ada/a-strunb.ads
parent498a5a8414782d098c459d5a6de12f184b3f2c41 (diff)
downloadgcc-9b832db55cf50f7a6739a35ec9f190eccc1d2973.zip
gcc-9b832db55cf50f7a6739a35ec9f190eccc1d2973.tar.gz
gcc-9b832db55cf50f7a6739a35ec9f190eccc1d2973.tar.bz2
lib.adb, lib.ads: (In_Predefined_Unit): New functions
2006-10-31 Robert Dewar <dewar@adacore.com> * lib.adb, lib.ads: (In_Predefined_Unit): New functions * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, a-except-2005.ads: Add pragma Preelaborable_Warning From-SVN: r118242
Diffstat (limited to 'gcc/ada/a-strunb.ads')
-rw-r--r--gcc/ada/a-strunb.ads9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/ada/a-strunb.ads b/gcc/ada/a-strunb.ads
index 5755ed2..a213f0b 100644
--- a/gcc/ada/a-strunb.ads
+++ b/gcc/ada/a-strunb.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2006, 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 --
@@ -42,6 +42,7 @@ package Ada.Strings.Unbounded is
pragma Preelaborate;
type Unbounded_String is private;
+ pragma Preelaborable_Initialization (Unbounded_String);
Null_Unbounded_String : constant Unbounded_String;
@@ -426,10 +427,4 @@ private
(AF.Controlled with
Reference => Null_String'Access,
Last => 0);
- -- Note: this declaration is illegal since library level controlled
- -- objects are not allowed in preelaborated units. See AI-161 for a
- -- discussion of this issue and an attempt to address it. Meanwhile,
- -- what happens in GNAT is that this check is omitted for internal
- -- implementation units (see check in sem_cat.adb).
-
end Ada.Strings.Unbounded;