Bug 23012 – importC: asm label to set symbol name not applied from forward declaration

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2022-04-13T16:35:16Z
Last change time
2022-05-19T10:40:47Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
duser
See also
https://issues.dlang.org/show_bug.cgi?id=23011

Comments

Comment #0 by duser — 2022-04-13T16:35:16Z
void fn() asm("test1"); void fn(){} extern int xs[] asm("test2"); int xs[1]; compile and list the names with something like: dmd -c test.c && nm test.o they use the asm names with gcc but not with dmd
Comment #1 by bugzilla — 2022-04-18T08:05:33Z
evidently the patch for 23011 doesn't work for this one.
Comment #2 by dlang-bot — 2022-05-09T02:19:12Z
@maxhaton created dlang/dmd pull request #14095 "Fix Issue 23012 - Merge asm() symbol names of forward declared symbol…" fixing this issue: - Fix Issue 23012 - Merge asm() symbol names of forward declared symbols and their definitions https://github.com/dlang/dmd/pull/14095
Comment #3 by dlang-bot — 2022-05-19T10:40:47Z
dlang/dmd pull request #14095 "Fix Issue 23012 - Merge asm() symbol names of forward declared symbol…" was merged into master: - a65ffe6c25a1c860608537fc56418bca180a52a2 by mhh: Fix Issue 23012 - Merge asm() symbol names of forward declared symbols and their definitions https://github.com/dlang/dmd/pull/14095