target/9074: [alpha-linux] gcc fails to compile kernel on wildfire

Falk Hueffner falk.hueffner@student.uni-tuebingen.de
Mon Feb 10 01:55:00 GMT 2003


Hi,

not quite sure what's going on, but the problem is still there in gcc
version 3.4 20030203. Here's a smaller testcase:

extern inline void copy_tofrom_user(long len)
{
    register long pv asm("$27") = 0;
    register long cu_from asm("$7") = 0;
    asm volatile ("" : "=r"(len), "=r"(cu_from), "=r"(pv)
		     : "0"(len), "1"(cu_from), "2"(pv));
}

static void stli_memread(int *brdp) {    
    copy_tofrom_user(1 % *brdp);
}

Looks like some conflict between the divmod pattern and the $27 asm.

-- 
	Falk



More information about the Gcc-bugs mailing list