Subject: Re: bit set/clr macro's; atomic instructions.
To: None <gwr@mc.com, leo@ahwau.ahold.nl>
From: Peter Seebach <seebs@solon.com>
List: port-m68k
Date: 09/10/1996 19:03:52
I will just point out here that using a union { int foo; char bar[4]; }
is using a machine-specific trick.  In fact, any reference to one member
of a union after another has been written to is compiler-specific.

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.

-s