Thread overview
[Issue 23343] ImportC: functions declared with asm label to set symbol name gets extra underscore prepended
Sep 18, 2022
mhh
Sep 23, 2022
Walter Bright
Sep 25, 2022
Dlang Bot
Sep 25, 2022
Dlang Bot
Oct 10, 2022
RazvanN
September 18, 2022
https://issues.dlang.org/show_bug.cgi?id=23343

--- Comment #1 from dave287091@gmail.com ---
This same issue also affects LDC.

--
September 18, 2022
https://issues.dlang.org/show_bug.cgi?id=23343

mhh <maxhaton@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxhaton@gmail.com

--- Comment #2 from mhh <maxhaton@gmail.com> ---
The extra underscore is added by the backend/s, will take a look at fixing this

--
September 23, 2022
https://issues.dlang.org/show_bug.cgi?id=23343

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> ---
The _ prefix is added by obj_mangle2():

https://github.com/dlang/dmd/blob/master/compiler/src/dmd/backend/machobj.d#L2174

--
September 25, 2022
https://issues.dlang.org/show_bug.cgi?id=23343

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #14485 "fix Issue 23343 - ImportC: functions declared with asm label to set s…" fixing this issue:

- fix Issue 23343 - ImportC: functions declared with asm label to set symbol name gets extra underscore prepended

https://github.com/dlang/dmd/pull/14485

--
September 25, 2022
https://issues.dlang.org/show_bug.cgi?id=23343

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #14486 "fix Issue 23343 - ImportC: functions declared with asm label to set s…" fixing this issue:

- fix Issue 23343 - ImportC: functions declared with asm label to set symbol name gets extra underscore prepended

https://github.com/dlang/dmd/pull/14486

--
October 10, 2022
https://issues.dlang.org/show_bug.cgi?id=23343

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |FIXED

--