Re: Linux 2.6.0-test6

From: Linus Torvalds
Date: Sun Sep 28 2003 - 13:54:29 EST



On Sun, 28 Sep 2003, Sam Ravnborg wrote:
>
> Would it help to require all major[1] header files to include all the
> header files needed for them to compile?

It causes tons of extra work for the compiler if the compiler doesn't
optimize away redundant header files (same header file being included from
a lot of different sources).

I did the pruning in sparse, and I think at least gcc-3 does it too, but
I'm not sure.

If so, then sure, we could just require that the header files compile
cleanly, and for extra points verify that the end result is an empty
object file (ie no bad declarations anywhere..).

Linus

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