From: Nikodemus S. <nik...@ra...> - 2008-04-21 10:21:38
|
On Sun, Apr 6, 2008 at 1:58 AM, Stelian Ionescu <ste...@po...> wrote: > Hello, I'm using sbcl 1.0.15.36(with threads and unicode enabled) on > Linux/x86 and when evaluating this: > > (sb-alien:with-alien ((buf (array (sb-alien:signed 8) 16)))) > > I get this error: > > #<SB-C:TN t1> is not valid as the first result to VOP: > SB-C:ALLOC-ALIEN-STACK-SPACE > Primitive type: T > SC restrictions: > (SB-VM::ANY-REG SB-VM::SAP-REG) > The primitive type disallows these loadable SCs: > (SB-VM::ANY-REG SB-VM::SAP-REG) I'm not yet 100% sure this is right, but it seems to me ANY-REG is good for primitive type T on x86 and x86-64. Attached patch makes it so, and makes your test-case pass. Cheers, -- Nikodemus |