public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1669] [Ada] Fix for bootstrap problem with calling function System.Case_Util.To_Mixed
@ 2022-07-13 10:03 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-07-13 10:03 UTC (permalink / raw)
  To: gcc-cvs

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;


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

only message in thread, other threads:[~2022-07-13 10:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13 10:03 [gcc r13-1669] [Ada] Fix for bootstrap problem with calling function System.Case_Util.To_Mixed 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).