Re: [PATCH] isa_{read,write}{w,l} fixed

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Sat Feb 12 2000 - 09:22:44 EST


Philipp Rumpf <prumpf@inwestnet.de> said:

[...]

> I'm pretty sure it's a reasonably safe assumption gcc doesn't reorder members
> of structs as long as they are naturally aligned - otherwise I assume structs
> used for DMA would need to be fixed, too ?

gcc doesn't reorder structure members, the relevant standards require them
to be laid out in the order given. But it may add any padding it wants. And
that depends on the CPU/architecture, and might even depend on optimization
level and CPU family.

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:22 EST