Re: RH7.3 can't compile 2.6.0-test8

From: Marco Roeland
Date: Tue Oct 21 2003 - 08:54:46 EST


Op dinsdag 21 oktober 2003 om 09:19 uur schreef rwhron@xxxxxxxxxxxxx het volgende:

> > The Readme for 2.6.0-test6 still said that gcc 2.95 is required
>
> test8 Changes still says gcc-2.95.3. I saw the same compile error
> on RedHat 7.2. I ended up using gcc-3.3.1. Later I saw this patch:
>
> http://marc.theaimsgroup.com/?l=linux-kernel&m=106651554401143&w=2
>
> It's supposed to fix test8 compile with gcc-2.96 for RedHat 7.x.

It seems an odd fix though, the variable tty_nr is at most set once
inside the function, and is inaccessible to other functions so why it
should be volatile seems unclear to me. It might solve the compilation
(now that I look again the original error messages mention gcc internal
representation, so the suggestion of binutils at fault seems unwarranted)
but that seems by accident, not by design?

Perhaps if the huge sprintf with 40+ arguments (fs/proc/array.c, line 346)
amongst which several trinary operators, were to be split up into several
parts, might that not solve the problem more elegantly?
--
Marco Roeland
-
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/