diff options
author | Viljar Indus <indus@adacore.com> | 2024-11-04 14:16:02 +0200 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-11-26 10:49:35 +0100 |
commit | 2364e96f011d33698a6366f414aa813c5f9adc8b (patch) | |
tree | 55cc78bd6a0ec7d23be886df7c9dfbd13ceb1fab /gcc | |
parent | 9a0914232665c3215f5274f52ea6ddf654df4976 (diff) | |
download | gcc-2364e96f011d33698a6366f414aa813c5f9adc8b.zip gcc-2364e96f011d33698a6366f414aa813c5f9adc8b.tar.gz gcc-2364e96f011d33698a6366f414aa813c5f9adc8b.tar.bz2 |
ada: Remove Raise_Exception_On_Error
Raise_Exception_On_Error is never modified so it can be removed.
gcc/ada/ChangeLog:
* err_vars.ads: Remove Raise_Exception_On_Error and
Error_Msg_Exception.
* errout.ads: Same as above.
* errout.adb: Remove uses of Raise_Exception_On_Error and
Error_Msg_Exception.
* errutil.adb: Same as above.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/err_vars.ads | 11 | ||||
-rw-r--r-- | gcc/ada/errout.adb | 4 | ||||
-rw-r--r-- | gcc/ada/errout.ads | 11 | ||||
-rw-r--r-- | gcc/ada/errutil.adb | 4 |
4 files changed, 0 insertions, 30 deletions
diff --git a/gcc/ada/err_vars.ads b/gcc/ada/err_vars.ads index 838217b..13b68be 100644 --- a/gcc/ada/err_vars.ads +++ b/gcc/ada/err_vars.ads @@ -55,17 +55,6 @@ package Err_Vars is -- not get reset by any Error_Msg call, so the caller is responsible -- for resetting it. - Raise_Exception_On_Error : Nat := 0; - -- If this value is non-zero, then any attempt to generate an error - -- message raises the exception Error_Msg_Exception, and the error - -- message is not output. This is used for defending against junk - -- resulting from illegalities, and also for substitution of more - -- appropriate error messages from higher semantic levels. It is - -- a counter so that the increment/decrement protocol nests neatly. - - Error_Msg_Exception : exception; - -- Exception raised if Raise_Exception_On_Error is true - Current_Error_Source_File : Source_File_Index := No_Source_File; -- Id of current messages. Used to post file name when unit changes. This -- is initialized to Main_Source_File at the start of a compilation, which diff --git a/gcc/ada/errout.adb b/gcc/ada/errout.adb index a569b61..84958a7 100644 --- a/gcc/ada/errout.adb +++ b/gcc/ada/errout.adb @@ -996,10 +996,6 @@ package body Errout is pragma Assert (Msg (Msg'First) /= ' ' and then Msg (Msg'Last) /= ' '); - if Raise_Exception_On_Error /= 0 then - raise Error_Msg_Exception; - end if; - Continuation := Msg_Cont; Continuation_New_Line := False; Suppress_Message := False; diff --git a/gcc/ada/errout.ads b/gcc/ada/errout.ads index fce7d9b..3c0c2ce 100644 --- a/gcc/ada/errout.ads +++ b/gcc/ada/errout.ads @@ -48,17 +48,6 @@ package Errout is -- Source_Reference line, then this is initialized to No_Source_File, to -- force an initial reference to the real source file name. - Raise_Exception_On_Error : Nat renames Err_Vars.Raise_Exception_On_Error; - -- If this value is non-zero, then any attempt to generate an error - -- message raises the exception Error_Msg_Exception, and the error message - -- is not output. This is used for defending against junk resulting from - -- illegalities, and also for substitution of more appropriate error - -- messages from higher semantic levels. It is a counter so that the - -- increment/decrement protocol nests neatly. - - Error_Msg_Exception : exception renames Err_Vars.Error_Msg_Exception; - -- Exception raised if Raise_Exception_On_Error is true - Current_Node : Node_Id := Empty; -- Used by Error_Msg as a default Node_Id. -- Relevant only when Opt.Include_Subprogram_In_Messages is set. diff --git a/gcc/ada/errutil.adb b/gcc/ada/errutil.adb index 450be6b..ab320be 100644 --- a/gcc/ada/errutil.adb +++ b/gcc/ada/errutil.adb @@ -172,10 +172,6 @@ package body Errutil is return; end if; - if Raise_Exception_On_Error /= 0 then - raise Error_Msg_Exception; - end if; - Prescan_Message (Msg); Set_Msg_Text (Msg, Sptr); |