[Bug c/12826] Optimizer removes reference through volatile pointer

rth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Nov 9 07:08:00 GMT 2003


------- 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



More information about the Gcc-bugs mailing list