Re: [PATCH v3] Disable -fsplit-stack support on non-glibc targets

2022-01-21 Thread Jakub Jelinek via Gcc-patches
On Fri, Jan 21, 2022 at 08:16:11PM +0100, soeren--- via Gcc-patches wrote: > gcc/ChangeLog: > > * common/config/s390/s390-common.c (s390_supports_split_stack): > Only support split-stack on glibc targets. > * config/i386/gnu-user-common.h (STACK_CHECK_STATIC_BUILTIN): Ditto. >

Re: [PATCH v3] Disable -fsplit-stack support on non-glibc targets

2022-01-21 Thread H.J. Lu via Gcc-patches
On Fri, Jan 21, 2022 at 11:47 AM H.J. Lu wrote: > > On Fri, Jan 21, 2022 at 11:23 AM Richard Sandiford via Gcc-patches > wrote: > > > > soe...@soeren-tempel.net writes: > > > From: Sören Tempel > > > > > > The -fsplit-stack option requires the pthread_t TCB definition in the > > > libc to

Re: [PATCH v3] Disable -fsplit-stack support on non-glibc targets

2022-01-21 Thread H.J. Lu via Gcc-patches
On Fri, Jan 21, 2022 at 11:23 AM Richard Sandiford via Gcc-patches wrote: > > soe...@soeren-tempel.net writes: > > From: Sören Tempel > > > > The -fsplit-stack option requires the pthread_t TCB definition in the > > libc to provide certain struct fields at specific hardcoded offsets. As > > far

Re: [PATCH v3] Disable -fsplit-stack support on non-glibc targets

2022-01-21 Thread Richard Sandiford via Gcc-patches
soe...@soeren-tempel.net writes: > From: Sören Tempel > > The -fsplit-stack option requires the pthread_t TCB definition in the > libc to provide certain struct fields at specific hardcoded offsets. As > far as I know, only glibc provides these fields at the required offsets. > Most notably, musl

[PATCH v3] Disable -fsplit-stack support on non-glibc targets

2022-01-21 Thread soeren--- via Gcc-patches
From: Sören Tempel The -fsplit-stack option requires the pthread_t TCB definition in the libc to provide certain struct fields at specific hardcoded offsets. As far as I know, only glibc provides these fields at the required offsets. Most notably, musl libc does not have these fields. However,