Issue Details (XML | Word | Printable)

Key: PCC-411
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Nicolas Joly
Votes: 0
Watchers: 0
Operations

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

pcc can generate assembly that gnu as doesn't like

Created: 19/Sep/12 01:52 PM   Updated: 25/Sep/12 05:09 PM
Component/s: amd64 target
Affects Version/s: None
Fix Version/s: None

Environment:
NetBSD lanfeust.sis.pasteur.fr 6.99.11 NetBSD 6.99.11 (LANFEUST) #9: Tue Sep 18 15:45:01 CEST 2012 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST amd64
pcc 1.1.0.DEVEL 20120919 for x86_64-unknown-netbsd6.99.11
GNU assembler (NetBSD Binutils nb1) 2.21.1


 Description  « Hide
While trying to compile NetBSD amd64 GENERIC kernel with pcc, it fails on one file (pmap,c) where GNU as report some errors :

/tmp/ctm.01415b: Assembler messages:
/tmp/ctm.01415b:2569: Error: 0x7f8000000000 out range of signed 32bit displacement
/tmp/ctm.01415b:2576: Error: 0x7f8000000000 out range of signed 32bit displacement
/tmp/ctm.01415b:4923: Error: 0x7fbfdfeff000 out range of signed 32bit displacement
as terminated with status 1

Looking in generated assembly, the 3 offending lines look mostly the same with a huge constant :

2569: movq 140187732541440(,%rdx,1),%rax
2576: orq %rdx,140187732541440(,%rax,1)
4923: movq 140462072524800(,%rdx,8),%rcx


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 19/Sep/12 07:06 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson made changes - 19/Sep/12 07:08 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]