(Changes since 1.19.0-beta2 are marked with (new).)
Big news
- Frontend, druntime and Phobos are at version 2.089.1+. (#3192, #3210, #3215, #3232, #3242, #3255, #3261) (new)
- LLVM for prebuilt packages upgraded to v9.0.1; our fork has moved to ldc-developers/llvm-project. The x86[_64] packages newly include the experimental AVR backend. (#3244) (new)
- Android: A prebuilt AArch64 package has been added. It also includes prebuilt druntime/Phobos libraries for x86_64; the armv7a package includes the i686 libraries. So all 4 Android targets are covered with prebuilt druntime/Phobos. (#3244) (new)
- Breaking
extern(D)
ABI change for Posix x86[_64]: non-POD arguments are now passed by ref under the hood, just like they already were forextern(C++)
. Some superfluous implicit blits have been optimized away as well, for all targets. (#3204) - Posix: Defaults to
cc
now for linking, notgcc
(orclang
for FreeBSD 10+) - if theCC
environment variable isn't set. Override with-gcc=<gcc|clang>
. (#3202) - Codegen elision of dead branches for
if
statements with constant condition (not depending on enabled LLVM optimizations). (#3134) - druntime: New
llvm_sideeffect
intrinsic, new@cold
function UDA and extended CAS functionality incore.atomic
(incl. support for weak CAS and separate failure ordering). (ldc-developers/druntime#166, ldc-developers/druntime#167, #3220) - Windows: Bundled MinGW-based libs have been upgraded to use the .def files from MinGW-w64 v7.0.0. They now also contain a default
DllMain
entry point as well as_[v]snprintf
. (libs, #3142)
Platform support
- Supports LLVM 3.9 - 9.0.
Bug fixes
- Misc. CMake issues with some LLVM 9 configurations. (#3079, #3198)
- Equality/identity comparisons of vectors with length ≥ 32. (#3208, #3209)
ldc.gccbuiltins_*
druntime modules now available to non-installed compiler too. (#3194, #3201)- Potential ICE when applying
@assumeUsed
on global union. (#3221, #3222) Context from outer function, but no outer function?
regression introduced in v1.11 (inability to access outer context fromextern(C++)
methods). (#3234, #3235)- Lvalue expressions with nested temporaries to be destructed yielding a wrong lvalue. (#3233)
- druntime: Cherry-picked fix wrt. GC potentially collecting objects still referenced in other threads' TLS area. (dlang/druntime#2558) (new)
Known issues
- Buggy older
ld.bfd
linker versions may wrongly strip out required symbols, e.g., ModuleInfos (so that e.g. no module ctors/dtors are run). LDC defaults told.gold
on Linux. - LDC does not zero the padding area of a
real
variable. This may lead to wrong results if the padding area is also considered. See #770. Does not apply toreal
members inside structs etc.