diff options
author | Iain Buclaw <ibuclaw@symmetryinvestments.com> | 2024-12-29 06:40:04 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2025-01-05 13:30:24 +0100 |
commit | 332cf038fda109ea0612eeba7a85441293ba6984 (patch) | |
tree | ca5c381d189ace8afa4cf40369cd7d2063bc00a4 /libphobos | |
parent | 31f1bec65ba257adc346f952fd79a1ec3165a2e6 (diff) | |
download | gcc-332cf038fda109ea0612eeba7a85441293ba6984.zip gcc-332cf038fda109ea0612eeba7a85441293ba6984.tar.gz gcc-332cf038fda109ea0612eeba7a85441293ba6984.tar.bz2 |
d: Merge upstream dmd c11e1d1708, druntime e60bfd11bd, phobos 8729740e3
Synchronizing the compiler with the upstream release of v2.108.1.
D front-end changes:
- Import dmd v2.108.1.
- Add experimental support for language editions, enabled by
adding the UDA `@__edition_latest_do_not_use' before module
declarations.
- [Next Edition] Aliasing a member of a type instance is now an
error.
- Added `__ctfeWrite' to write messages from CTFE.
- `-fdump-c++-spec' generates signatures for `extern(Windows)'
and `extern(System)' functions.
- `foreach_reverse' on a delegate is now an error.
- ImportC has improved Unicode support.
D runtime changes:
- Mark unsafe unittest @trusted.
Phobos changes:
- Mark unsafe functions @trusted.
gcc/d/ChangeLog:
* Make-lang.in (D_FRONTEND_OBJS): Add d/attribsem.o,
d/common-charactertables.o, d/common-identifiertables.o.
* d-attribs.cc (apply_user_attributes): Update for new front-end
interface.
* d-builtins.cc (d_init_versions): Predefine CppRuntime_GNU.
* d-incpath.cc (add_globalpaths): Update for new front-end interface.
(add_filepaths): Likewise.
(add_import_paths): Likewise.
* d-lang.cc (d_post_options): Likewise.
* dmd/MERGE: Merge upstream dmd c11e1d1708.
* dmd/VERSION: Bump version to v2.108.1.
libphobos/ChangeLog:
* libdruntime/MERGE: Merge upstream druntime e60bfd11bd.
* src/MERGE: Merge upstream phobos 8729740e3.
gcc/testsuite/ChangeLog:
* gdc.dg/torture/pr96435.d: Add dg-warning.
Diffstat (limited to 'libphobos')
-rw-r--r-- | libphobos/libdruntime/MERGE | 2 | ||||
-rw-r--r-- | libphobos/libdruntime/core/sync/mutex.d | 2 | ||||
-rw-r--r-- | libphobos/src/MERGE | 2 | ||||
-rw-r--r-- | libphobos/src/std/bitmanip.d | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/libphobos/libdruntime/MERGE b/libphobos/libdruntime/MERGE index dc47db8..44c7e3f 100644 --- a/libphobos/libdruntime/MERGE +++ b/libphobos/libdruntime/MERGE @@ -1,4 +1,4 @@ -b65767825f365dbc153457fc86e1054b03196c6d +e60bfd11bd6a523418f94d1d821b7af71f5ad05b The first line of this file holds the git revision number of the last merge done from the dlang/dmd repository. diff --git a/libphobos/libdruntime/core/sync/mutex.d b/libphobos/libdruntime/core/sync/mutex.d index e7380c46..5f547cd 100644 --- a/libphobos/libdruntime/core/sync/mutex.d +++ b/libphobos/libdruntime/core/sync/mutex.d @@ -317,7 +317,7 @@ unittest cargo = 42; } - void useResource() shared @safe nothrow @nogc + void useResource() shared @trusted nothrow @nogc { mtx.lock_nothrow(); (cast() cargo) += 1; diff --git a/libphobos/src/MERGE b/libphobos/src/MERGE index a4f25db..79cd181 100644 --- a/libphobos/src/MERGE +++ b/libphobos/src/MERGE @@ -1,4 +1,4 @@ -92dc5a4e98591a0e6b0af4ff0f84f096fea09016 +8729740e3221cd6dcccdbbbb12b452d0ee9c1ee1 The first line of this file holds the git revision number of the last merge done from the dlang/phobos repository. diff --git a/libphobos/src/std/bitmanip.d b/libphobos/src/std/bitmanip.d index c9813e3..61c6c20 100644 --- a/libphobos/src/std/bitmanip.d +++ b/libphobos/src/std/bitmanip.d @@ -3274,7 +3274,7 @@ if (canSwapEndianness!T && n == T.sizeof) assert(c == littleEndianToNative!dchar(swappedC)); } -private T endianToNativeImpl(bool swap, T, size_t n)(ubyte[n] val) @nogc nothrow pure @safe +private T endianToNativeImpl(bool swap, T, size_t n)(ubyte[n] val) @nogc nothrow pure @trusted if (__traits(isIntegral, T) && n == T.sizeof) { if (!__ctfe) |