gcc/libphobos/libdruntime/core
Iain Buclaw 5dbab7b3f4 libphobos: Fix segfault at run-time when using custom Fibers (PR 98025)
When libphobos is configured with --enable-cet, this adds extra fields
to the Fiber class to support the ucontext_t fallback implementation.
These fields get omitted when compiling user code unless they also used
`-fversion=CET' to build their project, which resulted in data being
overwritten from within swapcontext().

On reviewing the ucontext_t definitions, it was found that the shadow
stack fields were missing, and the struct size didn't match up on X32.
This has been fixed in upstream druntime and merged down here.

Reviewed-on: https://github.com/dlang/druntime/pull/3293

libphobos/ChangeLog:

	PR d/98025
	* Makefile.in: Regenerate.
	* configure: Regenerate.
	* configure.ac (DCFG_ENABLE_CET): Substitute.
	* libdruntime/MERGE: Merge upstream druntime 0fe7974c.
	* libdruntime/Makefile.in: Regenerate.
	* libdruntime/core/thread.d: Import gcc.config.
	(class Fiber): Add ucontext_t fields when GNU_Enable_CET is true.
	* libdruntime/gcc/config.d.in (GNU_Enable_CET): Define.
	* src/Makefile.in: Regenerate.
	* testsuite/Makefile.in: Regenerate.
2020-11-27 21:27:14 +01:00
..
internal libphobos: Merge upstream druntime d37ef985. 2020-11-27 21:27:13 +01:00
stdc libphobos: Backport extern(C) bindings from druntime 2.091 2020-04-27 23:33:18 +02:00
stdcpp
sync
sys libphobos: Fix segfault at run-time when using custom Fibers (PR 98025) 2020-11-27 21:27:14 +01:00
atomic.d libphobos: core.atomic should have fallback when there's no libatomic. 2019-04-20 17:14:50 +00:00
attribute.d
bitop.d
checkedint.d
cpuid.d libphobos: Merge upstream druntime 5cc061a8, phobos 64ed4684f 2020-05-17 18:49:19 +02:00
demangle.d libphobos: Merge upstream druntime d37ef985. 2020-11-27 21:27:13 +01:00
exception.d
math.d d: Add float and double overloads for all core.math intrinsics 2020-11-27 21:27:13 +01:00
memory.d
runtime.d libphobos: Merge upstream druntime 109f0f2e 2019-04-22 13:46:13 +00:00
simd.d d: Merge upstream dmd 09db0c41e, druntime e68a5ae3. 2020-04-25 02:19:04 +02:00
thread.d libphobos: Fix segfault at run-time when using custom Fibers (PR 98025) 2020-11-27 21:27:14 +01:00
time.d libphobos: Merge upstream druntime 94686651 2019-08-21 07:54:19 +00:00
vararg.d