Commit 8451f4a5 by Iain Buclaw Committed by Iain Buclaw

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
parent 1fe61adf
2019-03-12 Iain Buclaw <ibuclaw@gdcproject.org> 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-lang.cc (d_init_options): Set global.params.cplusplus to C++14.
* d-target.cc (Target::cppFundamentalType): New method. * d-target.cc (Target::cppFundamentalType): New method.
......
...@@ -31,6 +31,10 @@ ...@@ -31,6 +31,10 @@
#undef assert #undef assert
#define assert(EXPR) gcc_assert(EXPR) #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. */ /* Forward ctype.h macros used by the dmd front-end to safe-ctype.h. */
#undef isalpha #undef isalpha
#define isalpha(c) ISALPHA(c) #define isalpha(c) ISALPHA(c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment