Bug 15393 – Debug versions in GC code doesn't compile.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-12-01T15:50:34Z
Last change time
2019-01-02T07:22:16Z
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2015-12-01T15:50:34Z
When compiling 2.067 druntime. Might have been fixed in a latter release, but this is preventing me from working on it. *** debug = PRINTF *** ../../../../gcc-devel/libphobos/libdruntime/gc/gc.d:1866:36: error: function gc.gc.printFreeInfo (Pool* pool) is not callable using argument types (LargeObjectPool*) debug(PRINTF) printFreeInfo(pool); ^ ../../../../gcc-devel/libphobos/libdruntime/gc/gc.d:1874:36: error: function gc.gc.printFreeInfo (Pool* pool) is not callable using argument types (LargeObjectPool*) debug(PRINTF) printFreeInfo(pool); ^ ../../../../gcc-devel/libphobos/libdruntime/gc/gc.d:1866:36: error: function gc.gc.printFreeInfo (Pool* pool) is not callable using argument types (LargeObjectPool*) debug(PRINTF) printFreeInfo(pool); ^ ../../../../gcc-devel/libphobos/libdruntime/gc/gc.d:1874:36: error: function gc.gc.printFreeInfo (Pool* pool) is not callable using argument types (LargeObjectPool*) debug(PRINTF) printFreeInfo(pool); ^ *** debug = MEMSTOMP *** ../../../../gcc-devel/libphobos/libdruntime/gc/gc.d:1802:42: error: undefined identifier size, did you mean alias size_t? debug (MEMSTOMP) memset(p, 0xF0, size); ^ ../../../../gcc-devel/libphobos/libdruntime/gc/gc.d:1802:42: error: undefined identifier size, did you mean alias size_t? debug (MEMSTOMP) memset(p, 0xF0, size); ^ ../../../../gcc-devel/libphobos/libdruntime/gc/gc.d:3117:37: error: undefined identifier pool, did you mean struct Pool? debug (MEMSTOMP) memset(pool.baseAddr + pn * PAGESIZE, 0xF3, n * PAGESIZE); ^ ../../../../gcc-devel/libphobos/libdruntime/gc/gc.d:3117:37: error: undefined identifier pool, did you mean struct Pool? debug (MEMSTOMP) memset(pool.baseAddr + pn * PAGESIZE, 0xF3, n * PAGESIZE); ^ *** debug = INVARIANT *** ../../../../gcc-devel/libphobos/libdruntime/gc/gc.d:1458:22: error: no property 'Invariant' for type 'const(PoolTable!(Pool))' pooltable.Invariant(); ^ ../../../../gcc-devel/libphobos/libdruntime/gc/gc.d:1458:22: error: no property 'Invariant' for type 'const(PoolTable!(Pool))' pooltable.Invariant(); ^
Comment #1 by github-bugzilla — 2019-01-02T07:22:16Z
Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/c1169182acaaafd18bd030797d4538fbd1454400 fix issue 15393 - Debug versions in GC code doesn't compile. also fixes size in call to rt_hasFinalizerInSegment https://github.com/dlang/druntime/commit/01daddfa7a49a5e86347c08e741ff9095978ae57 Merge pull request #2424 from rainers/gc_debug fix issue 15393 - Debug versions in GC code doesn't compile. merged-on-behalf-of: Nicholas Wilson <[email protected]>