aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/debug.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2017-09-08 12:05:18 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2017-09-08 12:05:18 +0200
commitf63adaa7a4ae18c7b0dc420f9e298f5b0746da6f (patch)
tree358956872032be9a0511fbfcc6dd5eb0659c861c /gcc/ada/debug.adb
parent4ac62786d6fb3b28c157fe9e6292842aa201d904 (diff)
downloadgcc-f63adaa7a4ae18c7b0dc420f9e298f5b0746da6f.zip
gcc-f63adaa7a4ae18c7b0dc420f9e298f5b0746da6f.tar.gz
gcc-f63adaa7a4ae18c7b0dc420f9e298f5b0746da6f.tar.bz2
[multiple changes]
2017-09-08 Yannick Moy <moy@adacore.com> * sem_prag.adb: Use System.Case_Util.To_Lower to simplify code. 2017-09-08 Arnaud Charlet <charlet@adacore.com> * opt.ads (Include_Subprogram_In_Messages): New variable. * errout.ads (Current_Subprogram_Ptr): New variable. * errout.adb (Error_Msg): Prepend current subprogram info in messages if Include_Subprogram_In_Messages is set. * sem_util.adb (elab code): Initialize Current_Subprogram_Ptr to Current_Subprogram. * gnat1drv.adb (Adjust_Global_Switches): Set Include_Subprogram_In_Messages when -gnatdJ is set. * debug.adb: Document and reserve -gnatdJ. 2017-09-08 Georges-Axel Jaloyan <jaloyan@adacore.com> * g-dynhta.adb, g-dynhta.ads (Get_First_Key, Get_Next_Key): New functions to iterate over simple hastables. (Load_Factor_HTable): Remove obsolete and inefficient implementation. 2017-09-08 Javier Miranda <miranda@adacore.com> * exp_ch6.adb (Unqual_BIP_Function_Call): Adding missing checks on the presence of Entity() before checking the entity attributes. 2017-09-08 Eric Botcazou <ebotcazou@adacore.com> * sem_ch6.adb (Analyze_Expression_Function): Reorder some statements, use local variable and remove unnecessary processing. From-SVN: r251880
Diffstat (limited to 'gcc/ada/debug.adb')
-rw-r--r--gcc/ada/debug.adb7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/debug.adb b/gcc/ada/debug.adb
index f5a7e25..c45a188 100644
--- a/gcc/ada/debug.adb
+++ b/gcc/ada/debug.adb
@@ -73,7 +73,7 @@ package body Debug is
-- dG Generate all warnings including those normally suppressed
-- dH Hold (kill) call to gigi
-- dI Inhibit internal name numbering in gnatG listing
- -- dJ
+ -- dJ Prepend subprogram name in messages
-- dK Kill all error messages
-- dL Output trace information on elaboration checking
-- dM Assume all variables are modified (no current values)
@@ -400,6 +400,11 @@ package body Debug is
-- is used in the fixed bugs run to minimize system and version
-- dependency in filed -gnatD or -gnatG output.
+ -- dJ Prepend the name of the enclosing subprogram in compiler messages
+ -- (errors, warnings, style checks). This is useful in particular to
+ -- integrate compiler warnings in static analysis tools such as
+ -- CodePeer.
+
-- dK Kill all error messages. This debug flag suppresses the output
-- of all error messages. It is used in regression tests where the
-- error messages are target dependent and irrelevant.