This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]