x86: string_32.h: workaround for broken gcc 4.0
authorH. Peter Anvin <hpa@zytor.com>
Mon, 26 May 2008 20:36:53 +0000 (13:36 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 26 May 2008 20:36:53 +0000 (13:36 -0700)
commit1a20d3ecf5c2a6435df2b756435b1eb1c657d45b
tree41a6bd0fce8a82fe199471a66aa9a84895544325
parent4b6011bc6ec71660859139ac8d28b7d0badd681c
x86: string_32.h: workaround for broken gcc 4.0

gcc 4.0 fails to allocate %eax for the pattern operand in the rep
store instructions used by memset; force it to do so by declaring a
register variable.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
include/asm-x86/string_32.h