Re: Can I do this...

Olivier Galibert (galibert@pobox.com)
Fri, 6 Feb 1998 06:50:00 +0100


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

If this "vuip" means "volatile unsigned int *", then optimizing it
away is a bug. But then it seems that gcc 2.8.0 has this bug. Do it in
two steps:

vuip pt = IACK_SC;
(void)(*pt);

OG.

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