aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/errout.ads
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2022-10-21 11:09:49 -0400
committerMarc Poulhiès <poulhies@adacore.com>2022-11-08 09:35:00 +0100
commit7a08b9393c7b36c4dca8fca9a5cda261594f61d6 (patch)
tree89507df0a6c9f66706c12165c3f645d13c12f581 /gcc/ada/errout.ads
parentc523e3f1ea9b451fddc4c535009b3eecffc4ac4a (diff)
downloadgcc-7a08b9393c7b36c4dca8fca9a5cda261594f61d6.zip
gcc-7a08b9393c7b36c4dca8fca9a5cda261594f61d6.tar.gz
gcc-7a08b9393c7b36c4dca8fca9a5cda261594f61d6.tar.bz2
ada: Move warnings switches -- initial work
This patch prepares to move warning switches from Opt into Warnsw. gcc/ada/ * warnsw.ads, warnsw.adb, fe.h, err_vars.ads, errout.ads: Move Warning_Doc_Switch from Err_Vars to Warnsw. Access Warn_On_Questionable_Layout on the C side via a function rather than a variable, because we plan to turn the variables into renamings, and you can't Export renamings. * erroutc.adb, switch-c.adb, errout.adb: Likewise. * gcc-interface/decl.cc: Use Get_Warn_On_Questionable_Layout instead of Warn_On_Questionable_Layout. * gcc-interface/Makefile.in (GNATMAKE_OBJS): Add warnsw.o, because it is indirectly imported via Errout. * gcc-interface/Make-lang.in (GNATBIND_OBJS): Likewise and remove restrict.o (not needed).
Diffstat (limited to 'gcc/ada/errout.ads')
-rw-r--r--gcc/ada/errout.ads9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/ada/errout.ads b/gcc/ada/errout.ads
index 846a4a6..aeb9a2f 100644
--- a/gcc/ada/errout.ads
+++ b/gcc/ada/errout.ads
@@ -59,15 +59,6 @@ package Errout is
Error_Msg_Exception : exception renames Err_Vars.Error_Msg_Exception;
-- Exception raised if Raise_Exception_On_Error is true
- Warning_Doc_Switch : Boolean renames Err_Vars.Warning_Doc_Switch;
- -- If this is set True, then the ??/?*?/?$?/?x?/?.x?/?_x? insertion
- -- sequences in error messages generate appropriate tags for the output
- -- error messages. If this switch is False, then these sequences are still
- -- recognized (for the purposes of implementing the pattern matching in
- -- pragmas Warnings (Off,..) and Warning_As_Error(...) but do not result
- -- in adding the error message tag. The -gnatw.d switch sets this flag
- -- True, -gnatw.D sets this flag False.
-
Current_Node : Node_Id := Empty;
-- Used by Error_Msg as a default Node_Id.
-- Relevant only when Opt.Include_Subprogram_In_Messages is set.