aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/usage.adb
diff options
context:
space:
mode:
authorGhjuvan Lacambre <lacambre@adacore.com>2022-05-06 18:53:57 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-06-01 08:43:19 +0000
commit65818fc9550ffda7724504e38c8d2005f6c4f2ca (patch)
treee48f3613a28644931423c1443b50b2459dd197d0 /gcc/ada/usage.adb
parent66f2a0def548b7f2e4edb46e50fc0b72e84532cc (diff)
downloadgcc-65818fc9550ffda7724504e38c8d2005f6c4f2ca.zip
gcc-65818fc9550ffda7724504e38c8d2005f6c4f2ca.tar.gz
gcc-65818fc9550ffda7724504e38c8d2005f6c4f2ca.tar.bz2
[Ada] Enable using absolute paths in -fdiagnostics-format=json output
This commit makes GNAT use absolute paths in -fdiagnostics-format=json's output when -gnatef is present on the command line. This makes life easier for tools that ingest GNAT's output. gcc/ada/ * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Document new behavior. * errout.adb (Write_JSON_Location): Output absolute paths when needed. * switch-c.adb (Scan_Front_End_Switches): Update -gnatef comment. * usage.adb (Usage): Update description of -gnatef. * gnat_ugn.texi: Regenerate.
Diffstat (limited to 'gcc/ada/usage.adb')
-rw-r--r--gcc/ada/usage.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/usage.adb b/gcc/ada/usage.adb
index a3d59b6..7d11ae5 100644
--- a/gcc/ada/usage.adb
+++ b/gcc/ada/usage.adb
@@ -187,7 +187,7 @@ begin
-- Line for -gnatef switch
Write_Switch_Char ("ef");
- Write_Line ("Full source path in brief error messages");
+ Write_Line ("Full source path in brief error messages and JSON output");
-- Line for -gnateF switch