This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12826] Optimizer removes reference through volatile pointer
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2003 15:04:52 -0000
- Subject: [Bug c/12826] Optimizer removes reference through volatile pointer
- References: <20031029145012.12826.lee@bustech.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12826
------- Additional Comments From falk at debian dot org 2003-10-29 15:04 -------
As I see it, *sp is not volatile, even if you access it with a pointer to
volatile. It's the volatility of the *object* that counts. So IMHO this is not a
bug.