This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs 1.1b and "volatile"
- To: "erik.ivanenko" <erik dot ivanenko at utoronto dot ca>
- Subject: Re: egcs 1.1b and "volatile"
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 29 Oct 1998 09:34:38 -0700
- cc: "rtems-snapshots at advicom dot net" <rtems-snapshots at advicom dot net>, egcs <egcs at cygnus dot com>
- Reply-To: law at cygnus dot com
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