public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4156] [Ada] Add Default_Initial_Condition to type Unbounded_String
@ 2021-10-05  8:23 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-10-05  8:23 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:04175813f920e8cb8ca146fb88a74edb33636b88

commit r12-4156-g04175813f920e8cb8ca146fb88a74edb33636b88
Author: Joffrey Huguet <huguet@adacore.com>
Date:   Fri Sep 10 15:10:33 2021 +0200

    [Ada] Add Default_Initial_Condition to type Unbounded_String
    
    gcc/ada/
    
            * libgnat/a-strunb.ads, libgnat/a-strunb__shared.ads: Add
            Default_Initial_Condition to Unbounded_String.

Diff:
---
 gcc/ada/libgnat/a-strunb.ads         | 3 ++-
 gcc/ada/libgnat/a-strunb__shared.ads | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gcc/ada/libgnat/a-strunb.ads b/gcc/ada/libgnat/a-strunb.ads
index 77d8a59ca48..b3050fdb5a3 100644
--- a/gcc/ada/libgnat/a-strunb.ads
+++ b/gcc/ada/libgnat/a-strunb.ads
@@ -58,7 +58,8 @@ package Ada.Strings.Unbounded with
 is
    pragma Preelaborate;
 
-   type Unbounded_String is private;
+   type Unbounded_String is private with
+     Default_Initial_Condition => Length (Unbounded_String) = 0;
    pragma Preelaborable_Initialization (Unbounded_String);
 
    Null_Unbounded_String : constant Unbounded_String;
diff --git a/gcc/ada/libgnat/a-strunb__shared.ads b/gcc/ada/libgnat/a-strunb__shared.ads
index 2091bde01c8..2cf678002ba 100644
--- a/gcc/ada/libgnat/a-strunb__shared.ads
+++ b/gcc/ada/libgnat/a-strunb__shared.ads
@@ -85,7 +85,8 @@ package Ada.Strings.Unbounded with
 is
    pragma Preelaborate;
 
-   type Unbounded_String is private;
+   type Unbounded_String is private with
+     Default_Initial_Condition => Length (Unbounded_String) = 0;
    pragma Preelaborable_Initialization (Unbounded_String);
 
    Null_Unbounded_String : constant Unbounded_String;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-05  8:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05  8:23 [gcc r12-4156] [Ada] Add Default_Initial_Condition to type Unbounded_String Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).