From: Iain Buclaw Date: Sat, 24 Nov 2018 09:51:03 +0000 (+0000) Subject: re PR d/87866 (gdc fails to compile minimal test) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bed5ed7105482e76663f224696ffe9d5209c8fd3;p=gcc.git 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 --- 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)) {