Subject: Re: bit set/clr macro's; atomic instructions.
To: Peter Seebach <seebs@solon.com>
From: Charles M. Hannum <mycroft@mit.edu>
List: port-m68k
Date: 09/10/1996 22:10:28
Peter Seebach <seebs@solon.com> writes:

> 
> Of course, it'll probably work.
> 
> The "correct" (language lawyer) way to do it
> 
> 	((char *)&intval)[N] = 1;
> 
> is a bit more disturbing, but is actually guaranteed to work.

I am unable to find anything in ANSI C which specifies that a casted
pointer must reference the same storage.  I also believe that it was
not the intent of the committee to make that so, especially since it
can't reasonably be implemented on some architectures.

So, um, which paragraph are you smoking?  B-)