Re: [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-28 Thread Avi Kivity
S.Çağlar Onur wrote: 27 Oca 2007 Cts tarihinde, Avi Kivity şunları yazmıştı: The patch looks correct, but I don't understand the gcc error message. Are we sure this isn't a gcc 4.2 bug? "g" appears to be equivalent to "rmi", if "i" is impossible, gcc is free to use "r" or "m", no? Acc

Re: [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-28 Thread Avi Kivity
Paweł Sikora wrote: On Saturday 27 of January 2007 10:05:53 Avi Kivity wrote: "g" appears to be equivalent to "rmi", if "i" is impossible, gcc is free to use "r" or "m", no? `r' A register operand is allowed provided that it is in a general register. `g' Any register, m

Re: [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-28 Thread H. Peter Anvin
S.Çağlar Onur wrote: "g" means "r"+"i" so the register allocator in the -O0 case is selecting "r" while in the optimize case is selecting "i" "g" means "rmi", not "ri". -hpa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-27 Thread D. Hazelton
On Saturday 27 January 2007 16:28, S.Çağlar Onur wrote: > 27 Oca 2007 Cts tarihinde, Avi Kivity şunları yazmıştı: > > The patch looks correct, but I don't understand the gcc error message. > > Are we sure this isn't a gcc 4.2 bug? > > > > "g" appears to be equivalent to "rmi", if "i" is impossible,

Re: [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-27 Thread S.Çağlar Onur
27 Oca 2007 Cts tarihinde, Avi Kivity şunları yazmıştı: > The patch looks correct, but I don't understand the gcc error message. > Are we sure this isn't a gcc 4.2 bug? > > "g" appears to be equivalent to "rmi", if "i" is impossible, gcc is free > to use "r" or "m", no? Accorgind to GCC devs. its

Re: [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-27 Thread Paweł Sikora
On Saturday 27 of January 2007 10:05:53 Avi Kivity wrote: > "g" appears to be equivalent to "rmi", if "i" is impossible, gcc is free > to use "r" or "m", no? `r' A register operand is allowed provided that it is in a general register. `g' Any register, memory or immediate integer o

Re: [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-27 Thread Avi Kivity
S.Çağlar Onur wrote: Hi; -rc6 fails with latest gcc 4.2 snapshot as following; CC [M] drivers/kvm/svm.o drivers/kvm/svm.c:206: warning: 'inject_db' defined but not used drivers/kvm/svm.c: In function 'svm_vcpu_run': drivers/kvm/kvm.h:560: error: 'asm' operand has impossible constraints make[2]

[PATCH] KVM: 'asm' operand has impossible constraints

2007-01-25 Thread S.Çağlar Onur
Hi; -rc6 fails with latest gcc 4.2 snapshot as following; CC [M] drivers/kvm/svm.o drivers/kvm/svm.c:206: warning: 'inject_db' defined but not used drivers/kvm/svm.c: In function 'svm_vcpu_run': drivers/kvm/kvm.h:560: error: 'asm' operand has impossible constraints make[2]: *** [drivers/kvm/svm.