On 14 May 01 at 20:38, mirabilos wrote:
> I have removed the "inline" in rwsem.h as suggested, and now
> can't compile -ac9 with the following error (seems to be a
> problem in the part that loads the compressed image):
> misc.o(.text.lock+0xa): undefined reference to `rwsem_wake'
You cannot remove inline from there. For some unknown reason even
if you'll mark it as 'static', gcc3 will still emit this code into object
file. You have to change constraint from "+d" to "+r" (with
changing %edx => %0 and adding push %edx around call to rwsemwake), or
just rewrite it in the way __up_write operates (movl %2,%%edx, add
"edx" into clobbered and %2 as value assigned to tmp, patch sent last week).
> Compiler: gcc3-snapshot 14.5.2001
Pre-26th snapshots have some fatal bug in optimizing
if (x) a = 123; else a = 456; :-( Look back through linux-kernel archive.
Petr Vandrovec
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/