xfs
[Top] [All Lists]

Re: gcc 3.2

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: gcc 3.2
From: stefano sartini <stefano.sartini@xxxxxxxxx>
Date: Thu, 29 Aug 2002 16:40:26 +0200
Cc: Steve Lord <lord@xxxxxxx>, linux-xfs@xxxxxxxxxxx
References: <3D6E233B.4090209@xxxxxxxxx> <1030628491.25030.4.camel@xxxxxxxxxxxxxxxxxxxx> <20020829144501.A2608@xxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020822
Christoph Hellwig wrote:
> On Thu, Aug 29, 2002 at 08:41:31AM -0500, Steve Lord wrote:
> 
>>On Thu, 2002-08-29 at 08:35, stefano sartini wrote:
>>
>>
>>>Compiling back with the 2.95.3 gcc gave no problem...
>>>Is a compiler issue?
>>
>>
>>Go to line 203 of page_buf_locking.c and replace the call to ffs
>>with a call to generic_ffs.
>>
>>Let me know if this fixes it and I will check it in to the tree.
> 
> 
> Please don't check it in.  The following patch that went into 2.4.20-pre
> should fix the root of the problem instead of the symptom:
> 
> 
> --- linux-2.4.19-rc3-ac4/include/asm-i386/bitops.h    Mon Jul 29 21:12:34 2002
> +++ linux/include/asm-i386/bitops.h   Mon Jul 29 21:38:44 2002
> @@ -456,7 +456,7 @@ static __inline__ int ffs(int x)
>       __asm__("bsfl %1,%0\n\t"
>               "jnz 1f\n\t"
>               "movl $-1,%0\n"
> -             "1:" : "=r" (r) : "g" (x));
> +             "1:" : "=r" (r) : "rm" (x));
>       return r+1;
>  }


Anyway, waiting for the 2.4.20 kernel, the suggested fix solved the 
compilation error related to XFS, leaving some problems with other 
modules :)

Thanks,

Stefano Sartini


<Prev in Thread] Current Thread [Next in Thread>