Re: On labelled initialisers, gcc-2.7.2.3 and tcp_ipv4.c

From: David Woodhouse (dwmw2@infradead.org)
Date: Mon Oct 16 2000 - 04:24:53 EST


root@chaos.analogic.com said:
> The 'C' language can order structure members anyway it wants. It also
> can add any 'fill' or alignment bytes it wants. The compiler is not
> broken in this respect.

Anyone who's been following this list for a while will know not to take any
notice of Dick, especially when he's spouting about the C standards. This
is probably why there's been no other response yet.

But just for the benefit of newcomers - the C compiler is _not_ free to
re-order structure members. They must be in order, but may be arbitrarily
aligned.

--
dwmw2

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



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:08 EST