Re: 2.2.13-pre6 build failed (gcc-2.95.1)

Horst von Brand (vonbrand@inf.utfsm.cl)
Mon, 13 Sep 1999 11:27:17 -0400


Sergey Kubushin <ksi@ksi-linux.com> said:
> On Sun, 12 Sep 1999, Horst von Brand wrote:
> > Sergey Kubushin <ksi@ksi-linux.com> said:
> > > 2.2.13-pre6 i386 build fails with gcc-2.95.1:

> > > === Cut ===
> > > usercopy.c: In function `strnlen_user':
> > > usercopy.c:145: Invalid `asm' statement:
> > > usercopy.c:145: fixed or forbidden register 2 (cx) was spilled for class
> > > CREG.
> > > make[2]: *** [usercopy.o] Error 1
> > > === Cut ===
> > >
> > > Is the cure known?

> > An illegal asm constraint, again...

This one was fixed by a recent patch on this list.

> > BTW, the function definition itself bothers me a lot: it is called
> > strnlen_user; but doesn't return the string's length, but its size; or some
> > weird values that signal various errors. I'd clean it up to return a string
> > length (I can see the unending patches "fixing" the uses assuming it
> > returns a proper length...), -EFAULT for bad addresses, or -E2BIG (?) for
> > strings that are too long.

> Will somebody fix it?

I'll take a shot at it, as nobody has screamed that this approach is wrong.
But don't hold your breath.

-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

- 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/