am b5cba608: Merge "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"

* commit 'b5cba6081bc9179d3ea2aa1bfd77dd8de1c88525':
  cdefs.h: add artificial attribute to FORTIFY_SOURCE functions
This commit is contained in:
Nick Kralevich
2014-10-06 23:28:47 +00:00
committed by Android Git Automerger
2 changed files with 8 additions and 2 deletions

View File

@@ -53,6 +53,9 @@
#ifndef __has_builtin
#define __has_builtin(x) 0
#endif
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif
/*
@@ -534,8 +537,12 @@
#endif
#define __bos0(s) __builtin_object_size((s), 0)
#if __GNUC_PREREQ(4,3) || __has_attribute(__artificial__)
#define __BIONIC_FORTIFY_INLINE extern __inline__ __always_inline __attribute__((gnu_inline)) __attribute__((__artificial__))
#else
#define __BIONIC_FORTIFY_INLINE extern __inline__ __always_inline __attribute__((gnu_inline))
#endif
#endif
#define __BIONIC_FORTIFY_UNKNOWN_SIZE ((size_t) -1)
/* Used to tag non-static symbols that are private and never exposed by the shared library. */