Issue Details (XML | Word | Printable)

Key: PCC-201
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: compiler error: Cannot generate code

Created: 03/Dec/10 10:09 AM   Updated: 04/Dec/10 08:18 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/bus_space.c
line 518: compiler error: Cannot generate code, node 0x20d9fcc70 op =

the reduced code fragment triggering the error:
---
void bus_space_read_region_1(unsigned long h,unsigned char *ptr,unsigned long cnt)
{
int dummy1;
void *dummy2;
int dummy3;

__asm __volatile(" cld ;"
" repne ;"
" movsb" :
"=S" (dummy1), "=D" (dummy2), "=c" (dummy3) :
"0" (h), "1" (ptr), "2" (cnt) :
"memory");
}
---


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 04/Dec/10 08:18 PM
Fixed. I didn't take care of the case where the same input and output register were used but with different types. Thanks for reporting this bug.