fabs not being inlined?

NaN divide at by.zero
Fri Feb 8 09:17:03 UTC 2019


On Friday, 8 February 2019 at 00:01:58 UTC, kinke wrote:
> On Thursday, 7 February 2019 at 23:50:10 UTC, David Nadlinger 
> wrote:
>> or use link-time optimization
>
> Be sure to use `-flto=<thin|full>` *and* 
> `-defaultlib=druntime-ldc-lto,phobos2-ldc-lto`.
>

Ok tried that too, it results in ==>

> Executing task: dub run --compiler=ldc2 --build=release 
> --arch=x86_64 <

Performing "release" build using ldc2 for x86_64.
sonijit ~master: building configuration "application"...
lld-link.exe: error: undefined symbol: __chkstk
>>> referenced by lto.tmp:(_d_run_main)
>>> referenced by lto.tmp:(_d_run_main)
>>> referenced by lto.tmp:(_d_run_main)

Error: C:\LDC\bin\lld-link.exe failed with status: 1
ldc2 failed with exit code 1.
The terminal process terminated with exit code: 2

Terminal will be reused by tasks, press any key to close it.



More information about the digitalmars-d-ldc mailing list