Skip to content

Commit 0da73fe

Browse files
authored
Remove unused runtime symbols (#21629)
1 parent 288d54d commit 0da73fe

3 files changed

Lines changed: 0 additions & 10 deletions

File tree

compiler/src/dmd/backend/drtlsym.d

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,10 @@ Symbol* getRtlsym(RTLSYM i) @trusted
103103
case RTLSYM.MEMSETDOUBLE: symbolz(ps,FL.func,FREGSAVED,"_memsetDouble", 0, t); break;
104104
case RTLSYM.MEMSETSIMD: symbolz(ps,FL.func,FREGSAVED,"_memsetSIMD",0, t); break;
105105
case RTLSYM.MEMSETN: symbolz(ps,FL.func,FREGSAVED,"_memsetn", 0, t); break;
106-
case RTLSYM.NEWTHROW: symbolz(ps,FL.func,FREGSAVED,"_d_newThrowable", 0, t); break;
107106
case RTLSYM.ASSOCARRAYLITERALTX: symbolz(ps,FL.func,FREGSAVED,"_d_assocarrayliteralTX", 0, t); break;
108107
case RTLSYM.CALLFINALIZER: symbolz(ps,FL.func,FREGSAVED,"_d_callfinalizer", 0, t); break;
109108
case RTLSYM.CALLINTERFACEFINALIZER: symbolz(ps,FL.func,FREGSAVED,"_d_callinterfacefinalizer", 0, t); break;
110109
case RTLSYM.ALLOCMEMORY: symbolz(ps,FL.func,FREGSAVED,"_d_allocmemory", 0, t); break;
111-
case RTLSYM.ARRAYCATT: symbolz(ps,FL.func,FREGSAVED,"_d_arraycatT", 0, t); break;
112110
case RTLSYM.ARRAYAPPENDCD: symbolz(ps,FL.func,FREGSAVED,"_d_arrayappendcd", 0, t); break;
113111
case RTLSYM.ARRAYAPPENDWD: symbolz(ps,FL.func,FREGSAVED,"_d_arrayappendwd", 0, t); break;
114112
case RTLSYM.ARRAYCOPY: symbolz(ps,FL.func,FREGSAVED,"_d_arraycopy", 0, t); break;

compiler/src/dmd/backend/rtlsym.d

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,11 @@ enum RTLSYM
4747
MEMSETDOUBLE,
4848
MEMSETSIMD,
4949
MEMSETN,
50-
NEWTHROW,
5150

5251
ASSOCARRAYLITERALTX,
5352
CALLFINALIZER,
5453
CALLINTERFACEFINALIZER,
5554
ALLOCMEMORY,
56-
ARRAYCATT,
5755
ARRAYAPPENDCD,
5856
ARRAYAPPENDWD,
5957
ARRAYCOPY,

compiler/src/dmd/e2ir.d

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,6 @@ void toTraceGC(ref IRState irs, elem* e, Loc loc)
367367
assert(e1.Eoper == OPvar);
368368

369369
auto s = e1.Vsym;
370-
/* In -dip1008 code the allocation of exceptions is no longer done by the
371-
* gc, but by a manual reference counting mechanism implementend in druntime.
372-
* If that is the case, then there is nothing to trace.
373-
*/
374-
if (s == getRtlsym(RTLSYM.NEWTHROW))
375-
return;
376370
foreach (ref m; map)
377371
{
378372
if (s == getRtlsym(m[0]))

0 commit comments

Comments
 (0)