From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Sat, 22 Feb 2014 16:00:19 +0100 Subject: [U-Boot] [RFC] [PATCH] rewrite doc/README.arm-unaligned-accesses In-Reply-To: <20140222131750.5cb50999@lilith> References: <1392727962-22039-1-git-send-email-albert.u.boot@aribaud.net> <20140220213444.GM19081@bill-the-cat> <20140221112536.4093a098@lilith> <20140221133818.GP19081@bill-the-cat> <20140222131750.5cb50999@lilith> Message-ID: <20140222160019.4cc483c0@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, 22 Feb 2014 13:17:50 +0100, Albert ARIBAUD wrote: > Code which traps with -munaligned-access and SRC.A set is code which > is not correct, since the native unaligned access which was trapped > reflects an unaligned access within the C source code, which is not > allowed as per C99. If that access had been performed through get_ or > put_unaligned, then the code would be conformant and wouldn't trap. To be more exact: ... then all accesses in the code would be conformant and wouldn't trap (the code as a whole would quite probably still not be conformant because of the way the unaligned access would be rewritten into aligned accesses by the get/put_unaligned macro). Amicalement, -- Albert.