Re: [patch-2.4.0-test2]Re: Linux-2.4.0-test2

From: Ben Pfaff (pfaffben@msu.edu)
Date: Sat Jun 24 2000 - 12:55:58 EST


Andrea Arcangeli <andrea@suse.de> writes:

[...regarding gcc reordering fields within structs...]

> (if gcc folks implements the reordering I suggest to make it a
> global flag that can be enabled _only_ by demand)

ANSI C89 and C99 prohibit compilers from reordering structure
members. Compilers are allowed to insert padding between members
and following the last member, but that's all they're allowed to
do.

Thus, it would be a big mistake for gcc to reorder struct members
by default, and probably cause problems for lots of code, not
just for the kernel.

[snippage]

-
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 : Mon Jun 26 2000 - 21:00:04 EST