gcc/libphobos/testsuite
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
..
config Update copyright years. 2020-01-01 12:51:42 +01:00
lib libphobos: Override tool_timeout value in testsuite 2020-10-12 12:14:47 +02:00
libphobos.aa Update copyright years. 2020-01-01 12:51:42 +01:00
libphobos.allocations Update copyright years. 2020-01-01 12:51:42 +01:00
libphobos.cycles Update copyright years. 2020-01-01 12:51:42 +01:00
libphobos.druntime Update copyright years. 2020-01-01 12:51:42 +01:00
libphobos.druntime_shared Update copyright years. 2020-01-01 12:51:42 +01:00
libphobos.exceptions Update copyright years. 2020-01-01 12:51:42 +01:00
libphobos.hash Update copyright years. 2020-01-01 12:51:42 +01:00
libphobos.init_fini Update copyright years. 2020-01-01 12:51:42 +01:00
libphobos.phobos testsuite: Disable gdc standard runtime tests if phobos is not built. 2020-04-18 14:07:41 +02:00
libphobos.phobos_shared testsuite: Disable gdc standard runtime tests if phobos is not built. 2020-04-18 14:07:41 +02:00
libphobos.shared Update copyright years. 2020-01-01 12:51:42 +01:00
libphobos.thread d: Merge upstream dmd 934df6f8c, druntime 7bdd83d7 2020-04-30 12:16:11 +02:00
libphobos.typeinfo d: Turn on deprecation warnings by default. 2020-06-25 17:02:45 +02:00
Makefile.am Update copyright years. 2020-01-01 12:51:42 +01:00
Makefile.in libphobos: Fix segfault at run-time when using custom Fibers (PR 98025) 2020-11-27 21:27:14 +01:00
testsuite_flags.in libphobos: libdruntime doesn't support shadow stack (PR95680) 2020-09-10 18:04:12 +02:00