Skip to contentSkip to conversation

i386 entry.S problems

DISCUSSION Andi Kleen 1 participant 1 message Sep 27, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 3 lines · Jan Beulich

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