[Issue 21977] New: importC: Global declarations are thread-local by default
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 25 21:29:32 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21977
Issue ID: 21977
Summary: importC: Global declarations are thread-local by
default
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
In D all globals and static variables are thread-local unless explicitly
otherwise. In C, it's the opposite.
---
int signgam;
char *program_invocation_name;
---
$ objdump -t issue.o
issue.o: file format elf64-x86-64
SYMBOL TABLE:
0000000000000000 g .tbss 0000000000000004 signgam
0000000000000008 g .tbss 0000000000000008 program_invocation_name
--
More information about the Digitalmars-d-bugs
mailing list