Re: EGCS and Linux 2.1.89 patch

Christof Petig (christof.petig@wtal.de)
Mon, 16 Mar 1998 18:46:05 +0100


Bernd Schmidt wrote:

> > 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...

I hope we are the only ones ... it's not nice at all to do. Could you send me
your solution for comparison?

> > 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__.

Guess it ... I found the same error ... memset and memcpy were completely
optimized away.

Now some testing and I will repost my patch.

Christof

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