diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2019-03-12 16:31:48 +0000 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gcc.gnu.org> | 2019-03-12 16:31:48 +0000 |
commit | 8451f4a52e71cf93d20313fb067efb14894d1cc9 (patch) | |
tree | 01d317730cd859deb3161aceee2732a527109219 /gcc | |
parent | 1fe61adfcc44c4e6bf4b02f1d4043ba708b2953d (diff) | |
download | gcc-8451f4a52e71cf93d20313fb067efb14894d1cc9.zip gcc-8451f4a52e71cf93d20313fb067efb14894d1cc9.tar.gz gcc-8451f4a52e71cf93d20313fb067efb14894d1cc9.tar.bz2 |
Use libiberty's lrealpath to avoid portability problems.
The dmd front-end function FileName::canonicalName could be called
during the semantic pass of import("file") expressions, so still
requires that realpath() be redefined.
Initial patch by Rainer Orth.
gcc/d/ChangeLog:
2019-03-12 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/87866
* d-system.h (realpath): Redefine as lrealpath.
From-SVN: r269619
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/d/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/d/d-system.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/d/ChangeLog b/gcc/d/ChangeLog index c91a050..6c96ec4 100644 --- a/gcc/d/ChangeLog +++ b/gcc/d/ChangeLog @@ -1,5 +1,10 @@ 2019-03-12 Iain Buclaw <ibuclaw@gdcproject.org> + PR d/87866 + * d-system.h (realpath): Redefine as lrealpath. + +2019-03-12 Iain Buclaw <ibuclaw@gdcproject.org> + * d-lang.cc (d_init_options): Set global.params.cplusplus to C++14. * d-target.cc (Target::cppFundamentalType): New method. diff --git a/gcc/d/d-system.h b/gcc/d/d-system.h index c32825d..efece15 100644 --- a/gcc/d/d-system.h +++ b/gcc/d/d-system.h @@ -31,6 +31,10 @@ #undef assert #define assert(EXPR) gcc_assert(EXPR) +/* Use libiberty's lrealpath to avoid portability problems. */ +#undef realpath +#define realpath(a, b) lrealpath((a)) + /* Forward ctype.h macros used by the dmd front-end to safe-ctype.h. */ #undef isalpha #define isalpha(c) ISALPHA(c) |