[Issue 20441] Wrong code with -O -fPIC and string literal.ptr

2019-12-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20441 --- Comment #3 from Don --- And here is what the optimizer produces. The problematic instruction is highlighted. 0x5558dbe8 <+0>: push %rbp 0x5558dbe9 <+1>: mov%rsp,%rbp 0x5558dbec <+4>: lea

[Issue 20441] Wrong code with -O -fPIC and string literal.ptr

2019-12-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20441 Ketmar Dark changed: What|Removed |Added CC||ket...@ketmar.no-ip.org --

[Issue 20441] Wrong code with -O -fPIC and string literal.ptr

2019-12-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20441 --- Comment #2 from Don --- On any non-ancient DMD version, -fPIC is enabled by default in the dmd.conf file. I have run the testcase on 2.078 with -fPIC removed from the dmd.conf file. It requires both -fPIC and -O to trigger the bug. --

[Issue 20441] Wrong code with -O -fPIC and string literal.ptr

2019-12-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20441 Mathias LANG changed: What|Removed |Added CC||pro.mathias.l...@gmail.com --- Comment #1

[Issue 20441] Wrong code with -O -fPIC and string literal.ptr

2019-12-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20441 Don changed: What|Removed |Added Keywords||industry --

[Issue 20441] Wrong code with -O -fPIC and string literal.ptr

2019-12-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20441 Don changed: What|Removed |Added Keywords||wrong-code --