Bug 12326 – [IMPLEMENTATION] Move hidden debug switches into a backend-specific struct.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-09T05:06:32Z
Last change time
2022-01-30T23:02:05Z
Keywords
GDC
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2014-03-09T05:06:32Z
There are a number of unknown fields in the mars.h (struct Params) that are only commented with: // hidden debug switches Likewise in GDC, we have some of our own additions to this struct that are not in use by DMD or LDC, so I suggest that a new backend specific structure (eg: struct Compiler) that is both unused and transparent to the frontend should replace this. This would contribute to making the frontend code shared among DMD, GDC, and LDC.
Comment #1 by yebblies — 2014-03-09T06:59:46Z
Seems like a good idea.
Comment #2 by ibuclaw — 2022-01-30T19:40:40Z
Comment #3 by maxhaton — 2022-01-30T23:02:05Z
Giving these less stupid names and then exposing them properly would probably make it easier for people to contribute to the backend, too.