This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

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


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


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