Add __may_alias macro to GCC toolchain

This is needed when one wants to avoid gcc
"dereferencing type-punned pointer" warnings.

Change-Id: I7bfd68fabb07deb64908cb0eaa833bdc5c8a4e08
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2015-06-10 11:27:25 +03:00 committed by Anas Nashif
commit 781b627f8c

View file

@ -109,6 +109,7 @@ __extension__ ({ \
#define __packed __attribute__((__packed__))
#define __aligned(x) __attribute__((aligned(x)))
#define __may_alias __attribute__((__may_alias__))
#define ARG_UNUSED(x) (void)(x)