Re: [Patch] asm workarounds in generic header files
From: Sam Ravnborg
Date: Tue Sep 09 2003 - 16:19:14 EST
On Tue, Sep 09, 2003 at 01:33:51PM -0700, Linus Torvalds wrote:
>
> Then, have a config-time "set the right symbolic link" the same way we do
> for "include/asm/", so that we can have a set of _clean_
> compiler-dependent abstractions.
I would prefer to have a compiler.h like this:
#if COMPILER=GCC-2.95
#include <compiler_gcc295.h
#endif
#if COMPILER=INTEL
#include <compiler_intel.h>
#endif
Better one more indirection in a simple compiler.h file than another symlink.
Symlinks should be used in rare cases only.
Sam
-
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/