aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorViljar Indus <indus@adacore.com>2024-11-21 12:22:00 +0200
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-12-12 10:58:01 +0100
commit07fe98fb1a92944eab83c4254e55f5bfee916a0b (patch)
tree9d8695be4610006907417e14cd69ba12cb6f78d1 /gcc
parent9ea2c78197cf16390b924c07acc402cb0954237f (diff)
downloadgcc-07fe98fb1a92944eab83c4254e55f5bfee916a0b.zip
gcc-07fe98fb1a92944eab83c4254e55f5bfee916a0b.tar.gz
gcc-07fe98fb1a92944eab83c4254e55f5bfee916a0b.tar.bz2
ada: Avoid going through symlinks in the json report
gcc/ada/ChangeLog: * errout.adb (Write_JSON_Location): Avoid going through symbolic links when printing the full name.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/errout.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/errout.adb b/gcc/ada/errout.adb
index 7e24970..3c49927 100644
--- a/gcc/ada/errout.adb
+++ b/gcc/ada/errout.adb
@@ -2372,7 +2372,8 @@ package body Errout is
Write_Str ("{""file"":""");
if Full_Path_Name_For_Brief_Errors then
Write_JSON_Escaped_String
- (System.OS_Lib.Normalize_Pathname (Get_Name_String (Name)));
+ (System.OS_Lib.Normalize_Pathname
+ (Get_Name_String (Name), Resolve_Links => False));
else
Write_Name (Name);
end if;