[coreboot] [Patch] remove some warnings
Stefan Reinauer
stepan at coresystems.de
Sun Mar 21 17:27:31 CET 2010
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
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.de • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
More information about the coreboot
mailing list