Marcus Johnson wrote:
I'm on a Mac, using Clang (Apple LLVM version 9.0.0 (clang-900.0.38))

in the coreutils "library", the file `explicit_bzero.c`, the build stops
because `asm` is not a valid keyword

That's weird, since the Clang manual sports examples with plain 'asm'; see:

https://clang.llvm.org/compatibility.html#inline-asm

Is there something unusual about your setup that would cause it to reject examples taken out of the Clang documentation? Has Clang's behavior changed recently, for example?

How about if you change the previous line in lib/explicit_bzero.c from this:

# ifdef __GNUC__

to this:

# if defined __GNUC__ && !defined __clang__

? Does that fix your problem?



Reply via email to