On 3/21/10 4:57 PM, Kevin O'Connor wrote:
It's about pointer aliases. Let's say one had code like:
void myfunc(u16 *s, u32 *l) { printf("%d", *l); *s += 1; *l += 1; printf("%d", *l); }
Then gcc is free to assume that *s and *l don't point to the same memory location.
Very obviously they don't. But why would that prevent us from casting a char [] to struct acpi_hdr?
Stefan