D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4823 - CodeView: Thread local variables are stored as shared globals
Summary: CodeView: Thread local variables are stored as shared globals
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P3 normal
Assignee: No Owner
URL:
Keywords: DebugInfo, Optlink
Depends on:
Blocks:
 
Reported: 2010-09-05 12:41 UTC by Aldo Nunez
Modified: 2024-12-13 17:53 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Aldo Nunez 2010-09-05 12:41:57 UTC
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 Rainer Schuetze 2011-10-06 00:32:51 UTC
I've patched dmd to emit these records correctly, but they are removed by optlink when creating the executable.
Comment 2 Rainer Schuetze 2019-08-20 22:00:45 UTC
OMF compiler output looks ok, but optlink screws it.
Building COFF and linking with the MS linker is ok.
Comment 3 dlangBugzillaToGithub 2024-12-13 17:53:15 UTC
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