From 62fc555c882b032dc5178ee5cb86c9979644a637 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 4 Mar 2016 12:53:07 +0200 Subject: include: Remove UNALIGNED_READ & UNALIGNED_WRITE These were not actually used anywhere and weren't correct (at least not the READ variant which assumed the architecture can always deal with unaligned access). Change-Id: If2bee24dc729683c839bb631d411eab73498adad Signed-off-by: Johan Hedberg --- include/toolchain/gcc.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/toolchain/gcc.h b/include/toolchain/gcc.h index 36edee1f7..610c307ea 100644 --- a/include/toolchain/gcc.h +++ b/include/toolchain/gcc.h @@ -45,15 +45,6 @@ __attribute__((section(#segment ",\"wa\",@nobits#"))) #endif -#define UNALIGNED_READ(p) (*(p)) - -#define UNALIGNED_WRITE(p, v) \ - do { \ - unsigned int __attribute__((__may_alias__)) *pp = (unsigned int *)(p); \ - *pp = (v); \ - } \ - while (0) - /* Unaligned access */ #define UNALIGNED_GET(p) \ __extension__ ({ \ -- cgit v1.2.3