Does your change to sysdeps/i386/i486/bits/string.h really work?
H . J . Lu
hjl@lucon.org
Wed Apr 10 17:51:00 GMT 2002
On Wed, Apr 10, 2002 at 01:47:32PM -0700, H . J . Lu wrote:
> With your change
>
> http://sources.redhat.com/ml/libc-hacker/2002-03/msg00060.html
>
> I got
>
> ../sysdeps/i386/i486/bits/string.h:1541: Can't find a register in class
> `GENERAL_REGS' while reloading `asm'.
>
> when I built glibc with -D__USE_STRING_INLINES using gcc 2.96 and gcc
> 3.1 20020408. It died on intl/loadmsgcat.os. -D__USE_STRING_INLINES
> and -fPIC won't work together.
>
>
Here is a small testcase.
# gcc -c -O -fPIC ... foo.c
/tmp/foo.c: In function `foo':
../sysdeps/i386/i486/bits/string.h:1541: Can't find a register in class `GENERAL_REGS' while reloading `asm'.
H.J.
----
#include <string.h>
char *
foo (char *nullentry)
{
size_t nullentrylen;
const char *charsetstr;
charsetstr = nullentry;
charsetstr += strlen ("charset=");
nullentrylen = strcspn (charsetstr, " \t\n");
return nullentry;
}
More information about the Libc-alpha
mailing list