d/dmd: Merge dmd upstream ed71446aa
authorIain Buclaw <ibuclaw@gdcproject.org>
Fri, 1 Mar 2019 10:21:54 +0000 (10:21 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Fri, 1 Mar 2019 10:21:54 +0000 (10:21 +0000)
commit9503d7b1ffd205eac2fbb6418578972f5f428b9f
treebad3ebab9e324ebba545e561514db3637267913c
parentc6b363486fc0c421f09cbf7fbc9a7c8bd20ea4eb
d/dmd: Merge dmd upstream ed71446aa

Backports support for extern(C++, "namespace"), which makes the
core.stdcpp package compilable.

Added predefined condition for CppRuntime_Gcc unconditionally, as it is
unlikely that D code will be linking to anything other than libstdc++
when extern(C++) is used.

Reviewed-on: https://github.com/dlang/dmd/pull/9371

gcc/d/ChangeLog:

2019-03-01  Iain Buclaw  <ibuclaw@gdcproject.org>

* d-builtins.cc (d_init_versions): Add CppRuntime_Gcc as predefined
version condition.

From-SVN: r269304
16 files changed:
gcc/d/ChangeLog
gcc/d/d-builtins.cc
gcc/d/dmd/MERGE
gcc/d/dmd/cond.c
gcc/d/dmd/cppmangle.c
gcc/d/dmd/dsymbol.c
gcc/d/dmd/dsymbol.h
gcc/d/dmd/nspace.c
gcc/d/dmd/nspace.h
gcc/d/dmd/parse.c
gcc/d/dmd/parse.h
gcc/testsuite/gdc.test/compilable/cppmangle3.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/test19574.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/cppmangle.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/reserved_version.d
gcc/testsuite/gdc.test/fail_compilation/reserved_version_switch.d