lkml.org 
[lkml]   [2001]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: latest-ac9 compile error (gcc3)
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
vandrove@vc.cvut.cz

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:53    [W:0.019 / U:0.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site