diff options
author | Nick Kralevich <nnk@google.com> | 2012-08-29 12:40:53 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2012-08-29 12:47:41 -0700 |
commit | 829c089f83ddee37203b52bcb294867a9ae7bdbc (patch) | |
tree | 95fb7297694601b1ff65ba0296cfff3a5ee66fd6 /libc/include/sys/cdefs.h | |
parent | 069c64cdf2d3da7b7ff6ea5d1041f982fb10ab22 (diff) | |
download | android_bionic-829c089f83ddee37203b52bcb294867a9ae7bdbc.tar.gz android_bionic-829c089f83ddee37203b52bcb294867a9ae7bdbc.tar.bz2 android_bionic-829c089f83ddee37203b52bcb294867a9ae7bdbc.zip |
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
Diffstat (limited to 'libc/include/sys/cdefs.h')
-rw-r--r-- | libc/include/sys/cdefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/include/sys/cdefs.h b/libc/include/sys/cdefs.h index 987a5e3db..ca81cb666 100644 --- a/libc/include/sys/cdefs.h +++ b/libc/include/sys/cdefs.h @@ -501,7 +501,7 @@ #define __BIONIC__ 1 #include <android/api-level.h> -#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 +#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 && !defined(__clang__) #define __BIONIC_FORTIFY_INLINE \ extern inline \ __attribute__ ((always_inline)) \ |