Bug 7971 – Cannot compile druntime with -debug=PRINTF

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2012-04-22T18:28:00Z
Last change time
2012-10-09T18:32:14Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2012-04-22T18:28:49Z
In 2.059, trying to add -debug=PRINTF to DFLAGS in win32.mak for druntime: src\object_.d(983): Error: safe function 'getHash' cannot call system function 'printf' src\object_.d(988): Error: safe function 'getHash' cannot call system function 'printf' src\rt\lifetime.d(412): Error: undefined identifier tls, did you mean function abs? The same is true for druntime in git. For those that don't know, compiling with this flag enables printf-style debugging of the GC since it tells you when it allocates/deallocates/finalizes things.
Comment #1 by github-bugzilla — 2012-10-06T22:12:15Z