diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2019-03-12 13:29:16 +0000 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gcc.gnu.org> | 2019-03-12 13:29:16 +0000 |
commit | c9634470ba8b918c01a7680740cf9ea13ca06967 (patch) | |
tree | 279986d79aff26484061e545bce82c387b8edb0a /gcc/d/d-lang.cc | |
parent | df2a91dece0ac6e410e3cf48b39cba8c3744c5f3 (diff) | |
download | gcc-c9634470ba8b918c01a7680740cf9ea13ca06967.zip gcc-c9634470ba8b918c01a7680740cf9ea13ca06967.tar.gz gcc-c9634470ba8b918c01a7680740cf9ea13ca06967.tar.bz2 |
d/dmd: Merge upstream dmd 7423993c9
Fixes C++ mangling for substituted basic types that are target-specific.
Introduces a new method that currently does nothing, but could in future
make use of flag_abi_version as extern(C++) integration improves in
latter versions of the D front-end.
Reviewed-on: https://github.com/dlang/dmd/pull/9439
gcc/d/ChangeLog:
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.
From-SVN: r269611
Diffstat (limited to 'gcc/d/d-lang.cc')
-rw-r--r-- | gcc/d/d-lang.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/d/d-lang.cc b/gcc/d/d-lang.cc index b53e56e..d97525a 100644 --- a/gcc/d/d-lang.cc +++ b/gcc/d/d-lang.cc @@ -282,6 +282,9 @@ d_init_options (unsigned int, cl_decoded_option *decoded_options) global.params.betterC = false; global.params.allInst = false; + /* Default extern(C++) mangling to C++14. */ + global.params.cplusplus = CppStdRevisionCpp14; + global.params.linkswitches = new Strings (); global.params.libfiles = new Strings (); global.params.objfiles = new Strings (); |