[U-Boot] imx: get_ticks in syscounter.c get miscompiled by GCC 6

Fabio Estevam festevam at gmail.com
Tue Mar 6 13:11:30 UTC 2018


On Tue, Mar 6, 2018 at 9:31 AM, Lothar Waßmann <LW at karo-electronics.de> wrote:

> Without the 'volatile' attribute the compiler is entitled to move the
> asm code around or optimize it out.
> So, your patch is the correct fix independent from the gcc version
> used.

Yes, but then it would be better to fix all the places where asm is
used without volatile.


More information about the U-Boot mailing list