public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-1669] [Ada] Fix for bootstrap problem with calling function System.Case_Util.To_Mixed
Date: Wed, 13 Jul 2022 10:03:52 +0000 (GMT)	[thread overview]
Message-ID: <20220713100352.966CE38515C3@sourceware.org> (raw)

https://gcc.gnu.org/g:d60f61f6a42171b5be920ba1217a94c2e8d15241

commit r13-1669-gd60f61f6a42171b5be920ba1217a94c2e8d15241
Author: Gary Dismukes <dismukes@adacore.com>
Date:   Sat Jul 9 19:16:51 2022 -0400

    [Ada] Fix for bootstrap problem with calling function System.Case_Util.To_Mixed
    
    gcc/ada/
    
            * sem_ch13.adb (Check_And_Resolve_Storage_Model_Type_Argument):
            Call the System.Case_Util.To_Mixed procedure rather than the
            function, to avoid bootstrap problems.

Diff:
---
 gcc/ada/sem_ch13.adb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb
index 9c3ae6fe33d..a64a3cd90de 100644
--- a/gcc/ada/sem_ch13.adb
+++ b/gcc/ada/sem_ch13.adb
@@ -17376,9 +17376,11 @@ package body Sem_Ch13 is
          Argument_Id : in out Entity_Id;
          Nam         : Name_Id)
       is
-         Name_String : constant String := To_Mixed (Get_Name_String (Nam));
+         Name_String : String := Get_Name_String (Nam);
 
       begin
+         To_Mixed (Name_String);
+
          if Present (Argument_Id) then
             Error_Msg_String (1 .. Name_String'Length) := Name_String;
             Error_Msg_Strlen := Name_String'Length;


                 reply	other threads:[~2022-07-13 10:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220713100352.966CE38515C3@sourceware.org \
    --to=pmderodat@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).