Bug 23078 – importC: generated code shouldn't depend on druntime

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-05-02T10:28:28Z
Last change time
2024-12-13T19:22:31Z
Keywords
ImportC
Assigned to
No Owner
Creator
kinke
Moved to GitHub: dmd#20095 →

Comments

Comment #0 by kinke — 2022-05-02T10:28:28Z
All (or at least the vast majority) of the *.c tests in the testsuite should be linkable without druntime, but aren't with DMD (unlike LDC), see the https://github.com/dlang/dmd/pull/14056 CI failures. TypeInfos seem to be emitted into the C object files, and some builtins like `__builtin_va_end` are actually druntime imports (to be duplicated in druntime's __builtins.di?).
Comment #1 by bugzilla — 2023-01-10T06:12:21Z
Could you please be more specific?
Comment #2 by kinke — 2023-01-10T13:24:33Z
The CI logs of that PR showing the required symbols from druntime are probably unavailable by now. What I recall are the mentioned TypeInfos codegen'd into those C object files, which reference the TypeInfo vtable from druntime etc.
Comment #3 by robert.schadek — 2024-12-13T19:22:31Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20095 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB