This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] i386: Fix GCC running out of registers for bits/string.h
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
Definitely gcc fault.
I also observed that gcc4 regressed a bit wrt register usage.