r278399 - in /trunk/libgcc: ChangeLog config.ho...

nsz@gcc.gnu.org nsz@gcc.gnu.org
Mon Nov 18 12:08:00 GMT 2019


Author: nsz
Date: Mon Nov 18 12:08:18 2019
New Revision: 278399

URL: https://gcc.gnu.org/viewcvs?rev=278399&root=gcc&view=rev
Log:
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.


Added:
    trunk/libgcc/config/t-gthr-noweak
Modified:
    trunk/libgcc/ChangeLog
    trunk/libgcc/config.host



More information about the Gcc-cvs mailing list