Re: i386 entry.S problems

From: Andi Kleen
Date: Mon Sep 27 2004 - 06:01:48 EST


"Jan Beulich" <JBeulich@xxxxxxxxxx> writes:
>
> I don't think so. Otherwise, why would arch/i386/Makefile specifically
> deal with this situation?

It shouldn't be enabled for 2.95, there are known miscompilations
caused by it there. The i386 Makefile enforces this:

cflags-$(CONFIG_REGPARM) += $(shell if [ $(GCC_VERSION) -ge 0300 ] ; then echo "-mregparm=3"; fi ;)

However this points to a bug in that when someone sets this
on 2.95 the assembly functions who check for CONFIG_REGPARM
explicitely will be subtly miscompiled. Perhaps having
a #error for this case would be better, although that
would break allyesconfig on prehistoric compilers. Maybe
it needs to be special cased in autoconf.h

-Andi

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