If you are trying to tell the compiler that a pointer
(or other value) might change and it mustn't reload it (etc)
then this might work:
#define LAUNDER(val_in, val_out) \
asm volatile ( "" : "&r" (val_out) : "0" (val_in))
That is (more or less) equivalent to:
val_out = (typeof(val_out))val_in;
except that the compiler can't track the value.
(assuming it doesn't 'peek inside' the asm.)
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT,
UK
Registration No: 1397386 (Wales)
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox