gcc/libatomic
Jakub Jelinek 0411ae7f08 libatomic, libgomp, libitc: Fix bootstrap [PR70454]
The recent changes to error on mixing -march=i386 and -fcf-protection broke
bootstrap.  This patch changes lib{atomic,gomp,itm} configury, so that it
only adds -march=i486 to flags if really needed (i.e. when 486 or later isn't
on by default already).  Similarly, it will not use ifuncs if -mcx16
(or -march=i686 for 32-bit) is on by default.

2021-01-15  Jakub Jelinek  <jakub@redhat.com>

	PR target/70454
libatomic/
	* configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
	be added through preprocessor check on
	__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.  Determine if try_ifunc is needed
	based on preprocessor check on __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16
	or __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8.
libgomp/
	* configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
	be added through preprocessor check on
	__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
libitm/
	* configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
	be added through preprocessor check on
	__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
2021-01-15 13:16:42 +01:00
..
config Update copyright years. 2021-01-04 10:26:59 +01:00
testsuite Update copyright years. 2021-01-04 10:26:59 +01:00
.gitignore
acinclude.m4 re PR other/79543 (Inappropriate "ld --version" checking) 2019-09-03 14:10:26 +00:00
aclocal.m4 Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00
auto-config.h.in
cas_n.c Update copyright years. 2021-01-04 10:26:59 +01:00
ChangeLog Daily bump. 2021-01-06 00:16:55 +00:00
configure Update GNU/Hurd configure support 2021-01-05 16:04:14 -07:00
configure.ac Update copyright years. 2021-01-04 10:26:59 +01:00
configure.tgt libatomic, libgomp, libitc: Fix bootstrap [PR70454] 2021-01-15 13:16:42 +01:00
exch_n.c Update copyright years. 2021-01-04 10:26:59 +01:00
fadd_n.c Update copyright years. 2021-01-04 10:26:59 +01:00
fand_n.c
fence.c Update copyright years. 2021-01-04 10:26:59 +01:00
fenv.c Update copyright years. 2021-01-04 10:26:59 +01:00
fior_n.c
flag.c Update copyright years. 2021-01-04 10:26:59 +01:00
fnand_n.c
fop_n.c Update copyright years. 2021-01-04 10:26:59 +01:00
fsub_n.c
fxor_n.c
gcas.c Update copyright years. 2021-01-04 10:26:59 +01:00
gexch.c Update copyright years. 2021-01-04 10:26:59 +01:00
glfree.c Update copyright years. 2021-01-04 10:26:59 +01:00
gload.c Update copyright years. 2021-01-04 10:26:59 +01:00
gstore.c Update copyright years. 2021-01-04 10:26:59 +01:00
host-config.h Update copyright years. 2021-01-04 10:26:59 +01:00
init.c
libatomic_i.h Update copyright years. 2021-01-04 10:26:59 +01:00
libatomic.map
load_n.c Update copyright years. 2021-01-04 10:26:59 +01:00
Makefile.am Update copyright years. 2021-01-04 10:26:59 +01:00
Makefile.in build: Use -include instead of conditional include. 2020-06-22 21:31:48 +00:00
store_n.c Update copyright years. 2021-01-04 10:26:59 +01:00
tas_n.c Update copyright years. 2021-01-04 10:26:59 +01:00