[Issue 14502] New: dmd -O optimization breaks app
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Apr 25 14:28:01 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14502
Issue ID: 14502
Summary: dmd -O optimization breaks app
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: chalucha at gmail.com
I've come across a problem that when -O is used, app which normally works end
up with segfault.
It's this benchmark:
https://github.com/kostya/benchmarks/blob/master/havlak/havlak.d
When compiled with: dmd -ofhavlak_d -O -release -inline havlak.d
It segfaults at least for me (it seams to work for repository author according
to test results)
DMD64 D Compiler v2.067.0
Linux 3.19.3-gentoo #1 SMP Fri Mar 27 10:41:00 CET 2015 x86_64 Intel(R)
Core(TM) i5-2500K CPU @ 3.30GHz GenuineIntel GNU/Linux
GDC, LDC and DMD without -O are working ok.
I'm trying to dustmite the problem and I'll post the results.
--
More information about the Digitalmars-d-bugs
mailing list