Re: Can I do this...

Richard Henderson (rth@dot.cygnus.com)
Thu, 5 Feb 1998 22:29:09 -0800


On Thu, Feb 05, 1998 at 10:18:10PM +0000, David Woodhouse wrote:
> Will gcc just optimise this away?
>
> /* Send -INTA pulses to clear any pending interrupts ...*/
> (void) (*(vuip) IACK_SC);

No. ISO rules require that the memory reference be retained.
And in fact I would recommend using this rather than assigning
to some temporary because it is more explicit about what you
are actually trying to accomplish.

BTW, gcc 2.8.0 has a bug in `*(volatile int *)&x', but that
shouldn't affect this situation because there is no addressof
operator being applied.

r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu