gcc/libgcc/config
Szabolcs Nagy 3d3a96a26e musl: Don't use gthr weak refs in libgcc PR91737
The gthr weak reference based single thread detection is unsafe with
static linking and in case of dynamic linking it's ineffective on musl
since pthread symbols are defined in libc.so.

(Ideally this should be fixed for all targets, since glibc plans to move
libpthread.so into libc.so too and users want to static link to pthread
without --whole-archive: PR87189.)

For now we have to explicitly opt out from the broken behaviour in the
config machinery of each target lib and libgcc was previously missed.

libgcc/ChangeLog:

2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* config.host: Add t-gthr-noweak on *-*-musl*.
	* config/t-gthr-noweak: New file.

From-SVN: r278399
2019-11-18 12:08:18 +00:00
..
aarch64 aarch64: Configure for sys/auxv.h in libgcc for lse-init.c 2019-09-25 15:51:55 -07:00
alpha linux-unwind.h (alpha_fallback_frame_state): Cast 'mcontext_t *' &rt_->uc.uc_mcontext to 'struct sigcontext *'. 2019-02-20 22:37:21 +01:00
arc re PR libgcc/78804 ([RX] -m64bit-doubles does not work) 2019-11-03 12:09:26 +00:00
arm Update the arm-*-vxworks* support 2019-11-14 16:11:30 +00:00
avr Support 64-bit double and 64-bit long double configurations. 2019-11-07 09:19:31 +00:00
bfin
bpf GCC port for eBPF 2019-09-09 12:13:23 +02:00
c6x
cr16
cris
csky
epiphany
fr30
frv
ft32
gcn Stub implementation of unwinding for AMD GCN. 2019-06-25 11:41:33 +00:00
h8300
i386 Add TIGERLAKE and COOPERLAKE to GCC. 2019-08-20 07:06:03 +00:00
ia64 crtbegin.S (__dso_handle): Put in .sdata/.sbss rather than .data/.bss so it can be accessed via... 2019-06-05 16:27:37 -06:00
iq2000
libbid
lm32
m32c
m32r
m68k m68k: add musl support 2019-11-15 19:47:12 +00:00
mcore
microblaze
mips
mmix
moxie
msp430 lib2hw_mul.S: Fix wrong syntax in branch instruction. 2019-10-23 16:52:47 +00:00
nds32 [NDS32] Refine force unwind. Linux kernel only uses RT_SIGRETURN. 2019-04-15 08:19:23 +00:00
nios2
nvptx [nvptx] Fix __main missing prototype warning in crt0.c 2019-06-18 09:19:28 +00:00
or1k or1k: Fix issues with msoft-div 2019-07-21 20:59:50 +00:00
pa linux-atomic.c (__kernel_cmpxchg): Change argument 1 to volatile void *. 2019-11-17 23:11:52 +00:00
pdp11
pru Initial TI PRU libgcc port 2019-06-12 19:28:51 +00:00
riscv RISC-V: Build soft-float divide routines for -mno-fdiv. 2019-11-01 13:35:12 -07:00
rl78
rs6000 [Darwin] Some TLC for older Darwin versions. 2019-07-03 18:36:28 +00:00
rx config.host (rx-*-linux*): Add t-fdpbit to tmake_file Add appropriate tm_file clause as well. 2019-06-05 17:20:27 -06:00
s390
score
sh
sol2
sparc Remove pre-Solaris 11/SPARC unwinding support 2019-05-28 17:27:51 +00:00
stormy16
tilegx
tilepro
v850
vax
visium lib2funcs.c (__set_trampoline_parity): Replace TRAMPOLINE_SIZE with __LIBGCC_TRAMPOLINE_SIZE__. 2019-02-15 10:40:34 +00:00
vms
xtensa
darwin10-unwind-find-enc-func.c
darwin-64.c
darwin-crt3.c
darwin-crt-tm.c
gthr-lynx.h
gthr-rtems.h
gthr-vxworks-cond.c Improve the thread support for VxWorks 2019-11-14 15:58:31 +00:00
gthr-vxworks-thread.c Improve the thread support for VxWorks 2019-11-14 15:58:31 +00:00
gthr-vxworks-tls.c Improve the thread support for VxWorks 2019-11-14 15:58:31 +00:00
gthr-vxworks.c Improve the thread support for VxWorks 2019-11-14 15:58:31 +00:00
gthr-vxworks.h Improve the thread support for VxWorks 2019-11-14 15:58:31 +00:00
hardfp.c
libgcc-glibc.ver
libgcc-libsystem.ver
no-sfp-machine.h
no-unwind.h
t-crtfm
t-crtstuff-pic
t-darwin [Darwin] Some TLC for older Darwin versions. 2019-07-03 18:36:28 +00:00
t-dfprules
t-eh-dw2-dip
t-fdpbit
t-fixedpoint-gnu-prefix
t-fpbit
t-freebsd-thread
t-gnu-prefix
t-gthr-noweak musl: Don't use gthr weak refs in libgcc PR91737 2019-11-18 12:08:18 +00:00
t-gthr-vxworks Improve the thread support for VxWorks 2019-11-14 15:58:31 +00:00
t-gthr-vxworksae Update the libgcc support for VxWorks AE/653 2019-11-14 16:00:55 +00:00
t-hardfp
t-hardfp-sfdf
t-libgcc-pic
t-libunwind
t-libunwind-elf
t-linux
t-openbsd-thread
t-rtems
t-slibgcc
t-slibgcc-darwin
t-slibgcc-elf-ver
t-slibgcc-fuchsia
t-slibgcc-gld
t-slibgcc-gld-nover
t-slibgcc-hpux
t-slibgcc-libgcc
t-slibgcc-nolc-override
t-slibgcc-sld
t-slibgcc-vms
t-softfp
t-softfp-compat
t-softfp-excl
t-softfp-sfdf
t-softfp-sfdftf
t-softfp-tf
t-stack
t-tls
t-vxcrtstuff Introduce vxworks specific crtstuff support 2019-11-14 15:53:23 +00:00
t-vxworks Improve the thread support for VxWorks 2019-11-14 15:58:31 +00:00
t-vxworks7 Improve the thread support for VxWorks 2019-11-14 15:58:31 +00:00
t-vxworksae Update the libgcc support for VxWorks AE/653 2019-11-14 16:00:55 +00:00
unwind-dw2-fde-darwin.c
vxcache.c
vxcrtstuff.c Introduce vxworks specific crtstuff support 2019-11-14 15:53:23 +00:00