From bed5ed7105482e76663f224696ffe9d5209c8fd3 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Sat, 24 Nov 2018 09:51:03 +0000 Subject: [PATCH] re PR d/87866 (gdc fails to compile minimal test) gcc/d/ChangeLog: 2018-11-24 Iain Buclaw PR d/87866 * d-incpath.cc (add_globalpaths): Use lrealpath to get canonical name. (add_filepaths): Likewise. From-SVN: r266429 --- gcc/d/ChangeLog | 6 ++++++ gcc/d/d-incpath.cc | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/d/ChangeLog b/gcc/d/ChangeLog index c706d085a3e..d1afa38886d 100644 --- a/gcc/d/ChangeLog +++ b/gcc/d/ChangeLog @@ -1,3 +1,9 @@ +2018-11-24 Iain Buclaw + + PR d/87866 + * d-incpath.cc (add_globalpaths): Use lrealpath to get canonical name. + (add_filepaths): Likewise. + 2018-11-17 Iain Buclaw PR d/87824 diff --git a/gcc/d/d-incpath.cc b/gcc/d/d-incpath.cc index be08ccb5f3b..87db8164134 100644 --- a/gcc/d/d-incpath.cc +++ b/gcc/d/d-incpath.cc @@ -78,7 +78,7 @@ add_globalpaths (Strings *paths) for (size_t i = 0; i < paths->dim; i++) { const char *path = (*paths)[i]; - const char *target = FileName::canonicalName (path); + const char *target = lrealpath (path); if (target == NULL || !FileName::exists (target)) { @@ -105,7 +105,7 @@ add_filepaths (Strings *paths) for (size_t i = 0; i < paths->dim; i++) { const char *path = (*paths)[i]; - const char *target = FileName::canonicalName (path); + const char *target = lrealpath (path); if (!FileName::exists (target)) { -- 2.30.2