[PATCH] i386: Fix GCC running out of registers for bits/string.h
Denis Vlasenko
vda@ilport.com.ua
Thu Jun 9 12:59:00 GMT 2005
On Thursday 09 June 2005 14:56, Maciej W. Rozycki wrote:
> That's secondary, but obviously it won't hurt. Note that it's not
> universally true -- GCC still requires the keyword for explicit register
> variables for their bindings to be respected.
>
> Here's a new version of the fix, but with it I get:
>
> md5-crypt.c: In function '__md5_crypt_r':
> ../sysdeps/i386/bits/string.h:655: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
>
> for md5-crypt.os (that is for strcspn()). Now that I would consider a bug
> in GCC -- replacing the "g" constraint with "m" for "__d3" makes the error
> go away, but it sort of defeats the purpose of that asm in the first
> place.
Definitely gcc fault.
I also observed that gcc4 regressed a bit wrt register usage.
--
vda
More information about the Libc-alpha
mailing list