[cfe-commits] C11 <stdatomic.h>

Ed Schouten ed at 80386.nl
Mon Sep 22 02:48:29 PDT 2014


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.

-- 
Ed Schouten <ed at 80386.nl>




More information about the cfe-commits mailing list