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>
diff --git a/include/toolchain/gcc.h b/include/toolchain/gcc.h
index e9b167f..0c0c0ef 100644
--- a/include/toolchain/gcc.h
+++ b/include/toolchain/gcc.h
@@ -109,6 +109,7 @@
#define __packed __attribute__((__packed__))
#define __aligned(x) __attribute__((aligned(x)))
+#define __may_alias __attribute__((__may_alias__))
#define ARG_UNUSED(x) (void)(x)