gcc/libphobos/libdruntime/rt
Rainer Orth 0b6e3127e8 Provide __start_minfo/__stop_minfo for linkers that don't (PR d/87864)
libphobos:
	PR d/87864
	* configure.ac (DRTSTUFF_SPEC): New variable.
	Substitute it.
	* libdruntime/m4/druntime/os.m4 (DRUNTIME_OS_MINFO_BRACKETING):
	New automake conditional.
	* configure: Regenerate.
	* libdruntime/gcc/drtstuff.c: New file.
	* libdruntime/Makefile.am [!DRUNTIME_OS_MINFO_BRACKETING]
	(DRTSTUFF, toolexeclib_DATA): New variables.
	(gcc/drtbegin.lo, gcc/drtend.lo): New rules.
	(libgdruntime_la_LDFLAGS): Use -Wc instead of -Xcompiler.
	Add -dstartfiles -B../src -Bgcc.
	(libgdruntime_la_DEPENDENCIES): New variable.
	(unittest_static_LDFLAGS): Use -Wc instead of -Xcompiler.
	(libgdruntime_t_la_LDFLAGS): Likewise.
	(unittest_LDFLAGS): Likewise.
	* src/Makefile.am (libgphobos_la_LDFLAGS): Use -Wc instead of
	-Xcompiler.
	Add -dstartfiles -B../libdruntime/gcc.
	(unittest_static_LDFLAGS): Use -Wc instead of -Xcompiler.
	(libgphobos_t_la_LDFLAGS): Likewise.
	(unittest_LDFLAGS): Likewise.
	* libdruntime/Makefile.in, src/Makefile.in: Regenerate.
	* Makefile.in, testsuite/Makefile.in: Regenerate.
	* libdruntime/rt/sections_elf_shared.d (Minfo_Bracketing): Don't
	assert.
	* libdruntime/gcc/config.d.in (Minfo_Bracketing): Remove.
	* src/drtstuff.spec: New file.
	* src/libgphobos.spec.in (DRTSTUFF_SPEC): Substitute.
	(*lib): Only pass SPEC_PHOBOS_DEPS without -debuglib, -defaultlib,
	-nophoboslib.
	* testsuite/testsuite_flags.in <--gdcldflags> (GDCLDFLAGS): Add
	-B${BUILD_DIR}/libdruntime/gcc.

	gcc/d:
	PR d/87864
	* lang.opt (dstartfiles): New option.
	* d-spec.cc (need_spec): New variable.
	(lang_specific_driver) <OPT_dstartfiles>: Enable need_spec.
	(lang_specific_pre_link): Also load libgphobos.spec if need_spec.

	gcc/testsuite:
	PR d/87864
	* lib/gdc.exp (gdc_link_flags): Add path to drtbegin.o/drtend.o if
	present.

From-SVN: r268886
2019-02-14 17:47:49 +00:00
..
typeinfo libphobos: Apply core.internal.hash updates from druntime 2019-02-10 21:01:24 +00:00
util libphobos: Apply core.internal.hash updates from druntime 2019-02-10 21:01:24 +00:00
aaA.d libphobos: Apply core.internal.hash updates from druntime 2019-02-10 21:01:24 +00:00
aApply.d
aApplyR.d
adi.d
arrayassign.d libphobos: Merge phobos and druntime with upstream. 2019-01-26 13:41:26 +00:00
arraycast.d
arraycat.d
bss_section.c
cast_.d
config.d
critical_.d
deh.d
dmain2.d libphobos: Merge phobos and druntime with upstream. 2019-01-26 13:41:26 +00:00
dylib_fixes.c
invariant.d
lifetime.d
memory.d
minfo.d
monitor_.d
obj.d
qsort.d
sections_android.d
sections_elf_shared.d Provide __start_minfo/__stop_minfo for linkers that don't (PR d/87864) 2019-02-14 17:47:49 +00:00
sections_osx.d
sections_solaris.d libphobos: Merge phobos and druntime with upstream. 2019-01-26 13:41:26 +00:00
sections_win32.d libphobos: Merge phobos and druntime with upstream. 2019-01-26 13:41:26 +00:00
sections_win64.d libphobos: Merge phobos and druntime with upstream. 2019-01-26 13:41:26 +00:00
sections.d
switch_.d
tlsgc.d