Bug 18053 – Use stdint.h mangling for int64_t/uint64_t when mangling D long/ulong
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-12-10T06:30:55Z
Last change time
2017-12-24T09:35:50Z
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2017-12-10T06:30:55Z
Currently it's a bit of a nightmare of inconsistent behavior from one compiler to the next, making it hard to portably interface to C++ code. Making it conform to int64_t / uint64_t should fix that.
The Elf C++ spec for mangling is:
http://refspecs.linux-foundation.org/cxxabi-1.86.html#mangling
Comment #1 by bugzilla — 2017-12-10T06:54:52Z
Mangling for uint64_t:
Linux32: y
Linux64: m
OSX32: y
OSX64: y
Comment #2 by bugzilla — 2017-12-10T07:34:14Z
Only OSX64 changes with this change (from 'm' to 'y').