Bug 4823 – CodeView: Thread local variables are stored as shared globals

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-09-05T12:41:57Z
Last change time
2024-12-13T17:53:15Z
Keywords
DebugInfo, Optlink
Assigned to
No Owner
Creator
Aldo Nunez
Moved to GitHub: dmd#18297 →

Comments

Comment #0 by aldonunez1 — 2010-09-05T12:41:57Z
In the debug info, thread local variables, whether they're at module, class, or function scope should have record types of S_LTHREAD32 and S_GTHREAD32. Right now they're stored as shared globals using the record type S_GDATA32.
Comment #1 by r.sagitario — 2011-10-06T00:32:51Z
I've patched dmd to emit these records correctly, but they are removed by optlink when creating the executable.
Comment #2 by r.sagitario — 2019-08-20T22:00:45Z
OMF compiler output looks ok, but optlink screws it. Building COFF and linking with the MS linker is ok.
Comment #3 by robert.schadek — 2024-12-13T17:53:15Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18297 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB