This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: What does it mean to include pthread.h with -std=c11?
- From: DJ Delorie <dj at redhat dot com>
- To: "Carlos O'Donell" <carlos at redhat dot com>
- Cc: joseph at codesourcery dot com, adhemerval dot zanella at linaro dot org, schwab at suse dot de, fweimer at redhat dot com, libc-alpha at sourceware dot org
- Date: Fri, 20 Dec 2019 15:39:20 -0500
- Subject: Re: What does it mean to include pthread.h with -std=c11?
> The question here is what do _really_ want to do in this case?
IMHO if the user includes one of our headers, we should provide the
requested functionality - somehow - regardless of compiler options.
Or we should hard-fail with a message that says why we aren't.
The BZ seems to indicate that we're somewhere in the middle, where we
act like we're providing a pthreads implementation, but we fail to
provide enough of it to work properly, and give unhelpful errors. This
makes it *look* like a bug, even if this is intentional. To me, this is
the worst of the three options, from the user's perspective.