Re: EGCS and Linux 2.1.89 patch

Bernd Schmidt (crux@Pool.Informatik.RWTH-Aachen.DE)
Mon, 16 Mar 1998 12:54:29 +0100 (MET)


> last night I made some patches to the i386 asms to support
> earlyclobbers. This is a menacing task. Any typo, forgetfulness or just
> misunderstanding will definitely break the kernel.

Oh good, did the same thing myself yesterday...

> This patch (at last) compiles for me, though I get an early OOPS in idle
> process (system halted).

There are some __asm__s there which do not have the __volatile__ keyword
after it. Since they used to have no outputs, the compiler decided to
mark them as volatile by itself. Now, they have the fake outputs for
earlyclobbers, so you need to add a __volatile__.

There's a test program in all versions of glibc that can help you a lot
with things like this, in string/tester.c. It needs some hacking to get
it to work with the Linux string.h, but it's really helpful.

Bernd

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu