Skip to contentSkip to conversation

00_rwsem-11, 2.4.4-ac11 and gcc-3(2001-05-14)

DISCUSSION mirabilos 2 participants 2 messages May 18, 2001 – May 21, 2001

lore
Share & tools
lore

mirabilos

author
#0 lore raw

Andrea,
I applied rwsem-11 (a bit by hand) to -ac11 and tried to compile. By changing CFLAGS_sys.o to -O (instead of -O2) as I read earlier I nearly could compile, it only barfed when it came to assemble the xaddl procedure by itself:

static inline long rwsem_xchgadd(long value, long * count)

{
        __asm__ __volatile__(LOCK "xaddl %0,%1"
                             : "+r" (value), "+m" (*count));
        return value;
}

changing from "inline" to "" yields a kernel which stops just before mounting root (sysrq still works, but nothing else). I now try again with GENERIC, and it actually is compiling... lets look whether it works.
I hope a non-generic will solve the sound freeze :)

-mirabilos

Signature · 1 line
by telnet
#1 lore raw

The compiler should be now fixed in this respect, for both my stuff that's in the kernel and Andrea's desired replacement. The problem appears to have been triggered by having two "input+output" constraints (eg: "+r", "+m"). However, I can't test this because the head of the CVS trunk doesn't seem to have been able to build and test successfully since just before the fix was applied. (I'm going on the codesourcery builds for this).

David