>> Ok, egcs for some reason refuses to do the fastcall thing.
>>> Your interpretation? Shall I reinstall GNU gcc and abandon egcs?
>> I wonder. The above certainly implies that at least your particular
>> version of egcs cannot compile the current kernels, but I don't know why.
>> Before abandoning egcs you might want to talk to some egcs people to see
>> whether there is some simple way to make egcs do the right thing.
> The position of Jeffrew Law on this is:
> <quote>
>> A new problem that just has appeared today is that Linux 2.1 uses
>> __attribute__((regparm)) for some critical functions, and at least egcs 1.0
>> seems to have problems to generate correct code with this in all cases.
> Oh god. Please stop them from doing this. regparm does not work on
> the x86 and will never work correctly on the x86. They're just going
> to shoot themselves in the foot.
> </quote>
> So would you consider the appended patch?
> One problem with this (and the workaround in asm-i386/spinlock.h) is
> that it adds additional dependencies for loadable kernel modules. But I
> don't see a better easy way. Maybe it should be documented somewhere at
> least @)
[...]
OK, I withdraw this patch because it is broken. I still think it needs
a solution though, probably the best way is to remove FASTCALL completely
because it apparently does not even work reliably on 2.7.2.
-Andi
-
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