lkml.org 
[lkml]   [2003]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch] asm workarounds in generic header files
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.067 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site