This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: egcs 1.1b and "volatile"



  In message <3637A2D7.3B01A550@utoronto.ca>you write:
  > This is a multi-part message in MIME format.
  > --------------CDDA1730C8C094789C88A68C
  > Content-Type: text/plain; charset=us-ascii
  > Content-Transfer-Encoding: 7bit
  > 
  > Is there some way to guarantee that a volatile variable will remain
  > volatile regardless of optimization level?  This is critical when
  > writing a device driver that modifies CPU memory. eg. i82596.
A load to or store from a volatile variable can never be deleted regardless
of the optimization level.

jeff


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