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: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Nov 2003 07:08:30 -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
------- Additional Comments From rth at gcc dot gnu dot org 2003-11-09 07:08 -------
I don't agree that this is invalid. I don't see this as any different from
void f(signed char *sp)
{
int status;
*sp = -1;
status = *(unsigned char *) sp;
if (status < 0)
abort ();
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12826