Re: [PATCH] de4x5.c [was Re: pre-2.1.116-1 breaks Cyrix 6x86 support]

Linus Torvalds (torvalds@transmeta.com)
Tue, 11 Aug 1998 14:21:34 -0700 (PDT)


On 11 Aug 1998, Zlatko Calusic wrote:
>
> But, what about compatibility (or should I say compilability?) with
> egcs. It is impossible to compile kernel with egcs without David's
> patch. Oops at boot stage with something like DE4 in some of the
> registers. Tried many times with different compilers/optimizations and
> always failed. Works like a charm now with the patch applied.

With a compiler problem, the only way to find the things tends to be to
compile the same file with both compilers, and trying to find the
differences that matter. Sometimes you can just run "diff" on the results,
but usually there are too many register allocation (or label number)
differences that confuse diff enough that it doesn't work out too well.
Even so, just compiling the same file with gcc-2.7.2.1 and egcs and
looking at it may well uncover the real reason for the problem.

If you have egcs installed, you might just want to do

make drivers/net/de4x5.s

and send me the asm-file - I could try to see if I see anything obvious
(but I'd obviously much prefer if somebody else would do more of the work,
as I'm essentially too lazy to really enjoy doing it myself ;)

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html