On Sun, Jan 27, 2013 at 03:45:43PM +1000, Ben Peddell wrote:
> gcc optimizes out the memcpy calls at -O2 and -Os.
> 
> Replacing memcpy with memmove does't work - gcc treats memmove
> the same way it treats memcpy.
> 
> This patch brings in {get|put}_unaligned_le{16|32|64} (using the
> packed struct method), and uses them in the failing get/set calls.
> 
> On architectures where unaligned accesses are cheap, these unaligned
> macros should be optimized out by the compiler.

Thanks, queued for integration. These tricky compilers ...

david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to