lkml.org 
[lkml]   [2006]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: frv compile error in set_pte()
Date
Adrian Bunk <bunk@stusta.de> wrote:

> > Does your compiler support the 'M' and 'U' constraint modifiers on FRV?
>
> It's a gcc 4.1.1 from ftp.gnu.org.

I presume this:

#define set_pte(pteptr, pteval) \
do { \
*(pteptr) = (pteval); \
asm volatile("dcf %M0" :: "U"(*pteptr)); \
} while(0)

void jump(unsigned long *ppte, unsigned long pte)
{
set_pte(ppte, pte);
}

Shows the problem.


I was in the process of checking that all the FRV constraint stuff got
upstream, but was stalled by an ICE whilst building the gcc-4.2. This logged
as gcc bug #28583 and not as yet fixed.

However, I've run the above test program with the xgcc intermediate compiler
built during the compilation of gcc, and that shows the problem you're
reporting. I'll chase it up.


Meanwhile, if you want to use a working, though older gcc, you can find one in:

ftp://ftp.ges.redhat.com/private/releng/frv-060512-Fc6734/tools.tar.bz2

David

--
VGER BF report: H 0.0672117
-
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: 2006-09-04 14:39    [W:0.047 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site