aboutsummaryrefslogtreecommitdiff
path: root/libphobos/libdruntime/gcc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2021-01-28 11:18:42 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2021-01-30 16:50:57 +0100
commit92dd3e71f957c7818f4ce4189bd187b59af20d9b (patch)
treeb5f4cae41be41fe6716dc656649ca8c35b96d8c0 /libphobos/libdruntime/gcc
parentaccc5ba53e0d0c660aa69f16ef32fc05e4439f1f (diff)
downloadgcc-92dd3e71f957c7818f4ce4189bd187b59af20d9b.zip
gcc-92dd3e71f957c7818f4ce4189bd187b59af20d9b.tar.gz
gcc-92dd3e71f957c7818f4ce4189bd187b59af20d9b.tar.bz2
libphobos: Synchronize libdruntime bindings with upstream druntime
Reviewed-on: https://github.com/dlang/druntime/pull/3348 gcc/d/ChangeLog: * typeinfo.cc (TypeInfoVisitor::visit (TypeInfoDeclaration *)): Don't layout m_arg1 and m_arg2 fields. libphobos/ChangeLog: * Makefile.in: Regenerate. * configure: Regenerate. * libdruntime/MERGE: Merge upstream druntime e4aae28e. * libdruntime/Makefile.am (DRUNTIME_DSOURCES): Refresh module list. (DRUNTIME_DSOURCES_BIONIC): Add core/sys/bionic/err.d. (DRUNTIME_DSOURCES_DARWIN): Add core/sys/darwin/err.d, core/sys/darwin/ifaddrs.d, core/sys/darwin/mach/nlist.d, core/sys/darwin/mach/stab.d, and core/sys/darwin/sys/attr.d. (DRUNTIME_DSOURCES_DRAGONFLYBSD): Add core/sys/dragonflybsd/err.d. (DRUNTIME_DSOURCES_FREEBSD): Add core/sys/freebsd/err.d. (DRUNTIME_DSOURCES_LINUX): Add core/sys/linux/err.d. (DRUNTIME_DSOURCES_NETBSD): Add core/sys/netbsd/err.d. (DRUNTIME_DSOURCES_OPENBSD): Add core/sys/openbsd/err.d. (DRUNTIME_DSOURCES_POSIX): Add core/sys/posix/locale.d, core/sys/posix/stdc/time.d, core/sys/posix/string.d, and core/sys/posix/strings.d. (DRUNTIME_DSOURCES_SOLARIS): Add core/sys/solaris/err.d. (DRUNTIME_DSOURCES_WINDOWS): Add core/sys/windows/sdkddkver.d, and core/sys/windows/stdc/time.d * libdruntime/Makefile.in: Regenerate. * libdruntime/gcc/sections/elf_shared.d (sizeofTLS): New function. * testsuite/libphobos.thread/fiber_guard_page.d: Use __traits(getMember) to get internal fields.
Diffstat (limited to 'libphobos/libdruntime/gcc')
-rw-r--r--libphobos/libdruntime/gcc/sections/elf_shared.d18
1 files changed, 18 insertions, 0 deletions
diff --git a/libphobos/libdruntime/gcc/sections/elf_shared.d b/libphobos/libdruntime/gcc/sections/elf_shared.d
index 427759a..5b0fad9 100644
--- a/libphobos/libdruntime/gcc/sections/elf_shared.d
+++ b/libphobos/libdruntime/gcc/sections/elf_shared.d
@@ -238,6 +238,15 @@ version (Shared)
}
}
+ size_t sizeOfTLS() nothrow @nogc
+ {
+ auto tdsos = initTLSRanges();
+ size_t sum;
+ foreach (ref tdso; *tdsos)
+ sum += tdso._tlsRange.length;
+ return sum;
+ }
+
// interface for core.thread to inherit loaded libraries
void* pinLoadedLibraries() nothrow @nogc
{
@@ -339,6 +348,15 @@ else
dg(rng.ptr, rng.ptr + rng.length);
}
}
+
+ size_t sizeOfTLS() nothrow @nogc
+ {
+ auto rngs = initTLSRanges();
+ size_t sum;
+ foreach (rng; *rngs)
+ sum += rng.length;
+ return sum;
+ }
}
private: