This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Need for arch pthread-offsets.h (was Re: [PATCH v2 05/15] ARC: Atomics and Locking primitives)
- From: Andreas Schwab <schwab at suse dot de>
- To: Vineet Gupta <vineet dot gupta1 at synopsys dot com>
- Cc: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, <libc-alpha at sourceware dot org>, <linux-snps-arc at lists dot infradead dot org>
- Date: Mon, 04 Feb 2019 11:02:51 +0100
- Subject: Re: Need for arch pthread-offsets.h (was Re: [PATCH v2 05/15] ARC: Atomics and Locking primitives)
- References: <1548811555-24373-1-git-send-email-vgupta@synopsys.com> <1548811555-24373-6-git-send-email-vgupta@synopsys.com> <mvmpnse8s6s.fsf@suse.de> <b7766cd4-3055-3e3b-f49b-fe870fee2740@synopsys.com> <8e025bb4-d86d-ba54-f937-3ae73870a71f@synopsys.com>
On Jan 31 2019, Vineet Gupta <vineet.gupta1@synopsys.com> wrote:
> However what was not obvious is adjustment to
> sysdeps/<arch>/nptl/pthread-offsets.h to __PTHREAD_MUTEX_*_OFFSET. But these don't
> seem to be *actually* used anywhere. Sure there are assert checks in
> pthread_mutext_init.c but what's the point: the struct is generic anyways. IOW I'm
> not sure what port specific errors/inconsistency they are catching, other than the
> fact that they need to be hand calculating when starting a new port.
>
> Am I missing something ?
The _OFFSET macros are for ensuring binary compatibility.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."