Issue Details (XML | Word | Printable)

Key: PCC-200
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: andre f.
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

amd64: unsupported xasm constraint rax

Created: 03/Dec/10 10:03 AM   Updated: 04/Dec/10 09:52 PM
Component/s: amd64 target
Affects Version/s: None
Fix Version/s: None

Environment: pcc 101201 on OpenBSD 4.7 amd64 compiling OpenBSD 4.7 kernel source (GENERIC kernel config)


 Description  « Hide
pcc 101201 on OpenBSD 4.7 amd64 compiling OpenBSD 4.7 kernel source (GENERIC kernel config)
fails in arch/amd64/amd64/pctr.c
line 91: compiler error: unsupported xasm constraint rax

the reduced code fragment triggering the error:

#define CR4_TSD 0x00000004

void pctrattach()
{
__asm __volatile("movq %%cr4,%%rax\n"
"\tandq %0,%%rax\n"
"\tmovq %%rax,%%cr4"
:: "i" (~CR4_TSD) : "rax");
}


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 04/Dec/10 09:52 PM
Support for reg constraints without % added.