toolchain: change aligned/used macros to support external c libraries

use __aligned__ and __used__ instead of aligned/used to avoid conflicts
with macros of the same name.

Change-Id: Ic36067dfc9df7ebcea486a075f759825d0dbde70
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2015-10-13 16:48:41 -04:00
commit 9104031a96

View file

@ -83,11 +83,10 @@ __extension__ ({ \
#define _GENERIC_SECTION(segment) __attribute__((section(#segment)))
#define __packed __attribute__((__packed__))
#define __aligned(x) __attribute__((aligned(x)))
#define __aligned(x) __attribute__((__aligned__(x)))
#define __may_alias __attribute__((__may_alias__))
#define __printf_like(f, a) __attribute__((format (printf, f, a)))
#define __used __attribute__((used))
#define __used __attribute__((__used__))
#define ARG_UNUSED(x) (void)(x)
#define likely(x) __builtin_expect((long)!!(x), 1L)