[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: various build failures



Finn Thain <fthain@telegraphics.com.au> writes:

>> > >   CC      drivers/video/fbmem.o
>> > > {standard input}: Assembler messages:
>> > > {standard input}:2113: Error: operands mismatch -- statement `moveq.l #8,%a4' ignored
>> > > make[2]: *** [drivers/video/fbmem.o] Error 1
>> > > make[1]: *** [drivers/video] Error 2
>> > > make: *** [drivers] Error 2
>> > 
>> > Yup, same error here with my old and trusted gcc-3.3.6.
>> > 

Fixed in CVS.

--- linux/include/asm-m68k/uaccess.h.~1.8.~	2006-06-16 18:07:20.000000000 +0200
+++ linux/include/asm-m68k/uaccess.h	2006-06-23 10:22:59.000000000 +0200
@@ -211,7 +211,7 @@ unsigned long __generic_copy_to_user(voi
 		"	moveq.l	#"#n",%0\n"				\
 		"	jra	4b\n"					\
 		"	.previous\n"					\
-		: "+r" (res), "+&a" (to), "+a" (from), "=&d" (tmp)	\
+		: "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp)	\
 		: : "memory")
 
 static __always_inline unsigned long
@@ -292,7 +292,7 @@ __constant_copy_from_user(void *to, cons
 		"5:	moveq.l	#"#n",%0\n"				\
 		"	jra	4b\n"					\
 		"	.previous\n"					\
-		: "+r" (res), "+a" (to), "+a" (from), "=&d" (tmp)	\
+		: "+d" (res), "+a" (to), "+a" (from), "=&d" (tmp)	\
 		: : "memory")
 
 static __always_inline unsigned long

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



Reply to: