]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Follow-up fix to previous change for Text_Ptr
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 2 Apr 2024 08:51:00 +0000 (10:51 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 21 May 2024 07:26:45 +0000 (09:26 +0200)
The variable would be saved and restored while still uninitialized.

gcc/ada/

* err_vars.ads (Error_Msg_Sloc): Initialize to No_Location.

gcc/ada/err_vars.ads

index 113dd936db645d5017c4387862d4b706ee784a39..838217b95f4328b704072bf15a4b5e7911246545 100644 (file)
@@ -107,7 +107,7 @@ package Err_Vars is
 
    --  WARNING: There is a matching C declaration of these variables in fe.h
 
-   Error_Msg_Sloc : Source_Ptr;
+   Error_Msg_Sloc : Source_Ptr := No_Location;
    --  Source location for # insertion character in message
 
    Error_Msg_Name_1 : Name_Id;