aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorGary Dismukes <dismukes@adacore.com>2022-07-09 19:16:51 -0400
committerPierre-Marie de Rodat <derodat@adacore.com>2022-07-13 10:01:18 +0000
commitd60f61f6a42171b5be920ba1217a94c2e8d15241 (patch)
treefce263ee0f0d47e4c43ae4c6c88ff1250c04e332 /gcc/ada
parent9f857be34d9c17730e590ee95d0d39953bc1bad4 (diff)
downloadgcc-d60f61f6a42171b5be920ba1217a94c2e8d15241.zip
gcc-d60f61f6a42171b5be920ba1217a94c2e8d15241.tar.gz
gcc-d60f61f6a42171b5be920ba1217a94c2e8d15241.tar.bz2
[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.
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/sem_ch13.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb
index 9c3ae6f..a64a3cd 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;