Issue Details (XML | Word | Printable)

Key: PCC-340
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Iain Hibbert
Votes: 0
Watchers: 0
Operations

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

pcc should define _LP64 and __LP64__

Created: 30/Apr/11 09:38 PM   Updated: 03/May/11 01:23 PM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File diff (0.6 kB)

Environment: NetBSD/amd64


 Description  « Hide
pcc should define __LP64__ and _LP64 symbols when 'long int' and pointer types
use 64-bit and int uses 32-bit

currently this is used in amd64 source on NetBSD. patch attached adds this as per
FreeBSD, DragonflyBSD and MidnightBSD though I guess in the long term this should
be handled some other way..

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 03/May/11 01:23 PM
Fixed, thanks.