[lkml]   [2000]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: recommended gcc compiler version
On Fri, Dec 22, 2000 at 11:25:14AM -0800, Linus Torvalds wrote:
> In article <>,
> Alan Cox <> wrote:
> >
> >2.4.0test
> > egcs-1.1.2
> > (gcc 2.95 miscompiles some of the long long uses)
> > Red Hat's 2.96 seems to generate valid kernels but don't expect
> > sympathy if you report a bug in one built that way
> Now, now, I'd love to se reports of expecially the new updated compiler.
> I've not actually seen a single report of problems for the kernel even
> with the old 2.96, it's just that I've seen too many user-space problems
> that I would be hesitant to use it for the kernel.

I'm working with a 2.97 based compiler for x86-64. There are a few
miscompilations, but they're probably more attributable to the immature state
of the x86-64 port than the generic compiler. The first thing
that is noticeable are lots of warnings now spewed out by the compiler.
Appended patch fixes the __setup related at least.
Other common ones are token after #endif (mostly #ifdef X .. #endif X)
and semicolon/label at the end of switch.


Index: include/linux/init.h
RCS file: /cvs/linux/include/linux/init.h,v
retrieving revision 1.23
diff -u -u -r1.23 init.h
--- include/linux/init.h 2000/11/15 00:13:57 1.23
+++ include/linux/init.h 2000/12/22 20:38:54
@@ -65,7 +65,7 @@

#define __setup(str, fn) \
static char __setup_str_##fn[] __initdata = str; \
- static struct kernel_param __setup_##fn __initsetup = { __setup_str_##fn, fn }
+ static struct kernel_param __setup_##fn __attribute__((unused)) __initsetup = { __setup_str_##fn, fn }

#endif /* __ASSEMBLY__ */

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at
 \ /
  Last update: 2005-03-22 12:52    [W:0.090 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site