[cfe-commits] C11 <stdatomic.h>

Hal Finkel hfinkel at anl.gov
Mon Sep 22 07:38:11 PDT 2014


----- Original Message -----
> From: "Ed Schouten" <ed at 80386.nl>
> To: "David Chisnall" <David.Chisnall at cl.cam.ac.uk>
> Cc: "Hal Finkel" <hfinkel at anl.gov>, "Tijl Coosemans" <tijl at coosemans.org>, "Richard Smith" <richard at metafoo.co.uk>,
> "cfe commits" <cfe-commits at cs.uiuc.edu>
> Sent: Monday, September 22, 2014 4:48:29 AM
> Subject: Re: [cfe-commits] C11 <stdatomic.h>
> 
> On 21 September 2014 12:44, David Chisnall
> <David.Chisnall at cl.cam.ac.uk> wrote:
> > We currently have a situation in FreeBSD where several of the
> > clang-provided headers are incompatible with the system headers,
> > and I'd prefer to avoid adding to this.  Our stdatomic.h is
> > carefully designed to work with gcc 4.2.1, clang, and newer GCC,
> > so we definitely wouldn't want to replace it with something
> > clang-specific.  Having clang provide a subset of the C standard
> > headers, independent of the C library, is quite unhelpful to us.
> 
> +1. It truly is unhelpful to us. It also prevents us from extending
> these headers if ever needed.
> 
> Would it be possible to come up with a solution where the headers
> provided by Clang are only available if not shipped by the OS? Clang
> would be free to ship with a copy of <stdatomic.h>, but as soon as
> there is another copy in the include paths, that version would be
> used
> instead.

Understood. I suggested exactly this (http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140915/115196.html). Does that work for you?

Thanks again,
Hal

> 
> --
> Ed Schouten <ed at 80386.nl>
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-commits mailing list