[RFA] [pei-386] prevent ld (auto-import) from generating broken code

Richard Henderson rth@redhat.com
Tue Sep 11 16:36:00 GMT 2001


On Tue, Sep 11, 2001 at 02:27:57PM -0400, Charles Wilson wrote:
> so you're saying that in some cases, gcc will ignore the 'volatile' 
> marker, and replace the variable with a constant?  Why?  Isn't 
> preventing that "optimization" exactly what the volatile modifier is for?

No.  The volatile marker applies to the *memory* not the address.
You're having problems with the computations of the address.  Ergo,
adding volatile is useless.

GCC's previous actions in not generally optimizing the addresses
of volatile memories is irrelevant.


r~



More information about the Binutils mailing list