lkml.org 
[lkml]   [1999]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] invalid asm in strnlen_user() (2.3.18ac, 2.2.13pre & gcc 2.95)
Hi,

@@ -172,8 +172,8 @@
" .align 4\n"
" .long 0b,2b\n"
".previous"
- :"=r" (n), "=D" (s), "=a" (res)
- :"0" (n), "1" (s), "2" (0), "c" (mask)
- :"cx", "cc");
+ :"=r" (n), "=D" (s), "=a" (res), "=c" (tmp)

Don't you think here should be used earlyclobber '&' -> "=&REG"
(something)
in output list?

+ :"=r" (n), "=&D" (s), "=&a" (res), "=&c" (tmp)

Just like in .../asm-i386/string.h. I know that the result asm is the
same,
but gcc docs say that '&' should be used when the value is expected to
be
modified.

Petkan

--
Petko Manolov - petkan@varel.bg
http://www.varel.bg/~petkan/

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

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