[Issue 4083] Exception-related code from nothrow destructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 17 12:21:33 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=4083
Dmitry Olshansky <dmitry.olsh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dmitry.olsh at gmail.com
Resolution|--- |WORKSFORME
--- Comment #1 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
Now on DMD 2.079 nothrow is optimized well, so it was fixed in the meantime:
000000000000000 <_Dmain>:
0: 55 push %rbp
1: 48 8b ec mov %rsp,%rbp
4: 48 83 ec 10 sub $0x10,%rsp
8: 48 8d 45 f8 lea -0x8(%rbp),%rax
c: c6 00 00 movb $0x0,(%rax)
f: b9 03 00 00 00 mov $0x3,%ecx
14: 89 4d fc mov %ecx,-0x4(%rbp)
17: 48 89 c7 mov %rax,%rdi
1a: e8 00 00 00 00 callq 1f <_Dmain+0x1f>
1f: 83 7d fc 03 cmpl $0x3,-0x4(%rbp)
23: 74 02 je 27 <_Dmain+0x27>
25: c9 leaveq
26: c3 retq
27: 31 c0 xor %eax,%eax
29: c9 leaveq
2a: c3 retq
--
More information about the Digitalmars-d-bugs
mailing list