Bug 7387 – call instruction does not understand $

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2012-01-28T05:19:03Z
Last change time
2020-08-27T16:29:50Z
Keywords
iasm, pull, rejects-valid
Assigned to
No Owner
Creator
Vladimir Panteleev

Comments

Comment #0 by dlang-bugzilla — 2012-01-28T05:19:03Z
Spec says: > The $ can only appear as the target of a jmp or call instruction. But this doesn't compile: void main() { asm { call $; pop EAX; } } t38b.d(5): bad type/size of operands 'call'
Comment #1 by b2.temp — 2019-06-20T19:45:47Z
What is dollar supposed to represent here ? the function we're in ?
Comment #2 by dlang-bugzilla — 2019-06-20T19:48:09Z
Comment #3 by b2.temp — 2019-06-20T19:55:00Z
I see, it's the Address of next instr
Comment #4 by dlang-bot — 2020-08-25T10:27:03Z
@WalterBright created dlang/dmd pull request #11624 "fix Issue 7387 - call instruction does not understand $" fixing this issue: - fix Issue 7387 - call instruction does not understand $ https://github.com/dlang/dmd/pull/11624
Comment #5 by dlang-bot — 2020-08-27T16:29:50Z
dlang/dmd pull request #11624 "fix Issue 7387 - call instruction does not understand $" was merged into master: - 1b78cbc1c6726261287e907d702d595f93c708cb by Walter Bright: fix Issue 7387 - call instruction does not understand $ https://github.com/dlang/dmd/pull/11624