[U-Boot-Users] possible ELDK4 gcc compiler bug

Pantelis Antoniou pantelis.antoniou at gmail.com
Thu Dec 7 17:29:52 CET 2006


On 07 Δεκ 2006, at 11:21 ΠΜ, Matthias Fuchs wrote:

> Hi,
>

[snip]

Declare your struct variable pointer as volatile.

The compiler optimizes all your accesses away.

Even volatile is considered bad form nowadays, the proper one
is using accessors which do the _right_ thing for your specific
hardware.

Regards

Pantelis





More information about the U-Boot mailing list