OSDN Git Service

disable _FORTIFY_SOURCE under clang
authorNick Kralevich <nnk@google.com>
Wed, 29 Aug 2012 19:40:53 +0000 (12:40 -0700)
committerNick Kralevich <nnk@google.com>
Wed, 29 Aug 2012 19:47:41 +0000 (12:47 -0700)
commit829c089f83ddee37203b52bcb294867a9ae7bdbc
tree95fb7297694601b1ff65ba0296cfff3a5ee66fd6
parent069c64cdf2d3da7b7ff6ea5d1041f982fb10ab22
disable _FORTIFY_SOURCE under clang

Clang and _FORTIFY_SOURCE are just plain incompatible with
each other.  First of all, clang doesn't understand the
__attribute__((gnu_inline)) header. Second of all,
Clang doesn't have support for __builtin_va_arg_pack()
and __builtin_va_arg_pack_len() (see
http://clang.llvm.org/docs/UsersManual.html#c_unimpl_gcc)

Until we can resolve these issues, don't even try using
_FORTIFY_SOURCE under clang.

Change-Id: I81c2b8073bb3276fa9a4a6b93c427b641038356a
libc/include/fcntl.h
libc/include/stdio.h
libc/include/string.h
libc/include/sys/cdefs.h