www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14896] New: x64 codegen when using -O

https://issues.dlang.org/show_bug.cgi?id=14896

          Issue ID: 14896
           Summary: x64 codegen when using -O
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: aliloko gmail.com

Created attachment 1539
  --> https://issues.dlang.org/attachment.cgi?id=1539&action=edit
Click on batch files and inspect the PNG to reproduce

So i've had problems with font rendering in a plugin program and made a test
case that can reproduce the problem stand-alone.

DMD version: v2.068.0-rc1
OS version: Windows 8

The test case provide two .bat files to run it exposing or not the problem.
The output is a PNG file that contains text if the bug isn't there.
Unfortunately the code is still large, but I'm pretty sure the problem is
somewhere in stb_truetype.d

The bug only shows with both -m64 and -O.


It can be work-arounded by removing -O for some modules. But still it prevents
to build projects all-at-once and it's time-consuming process.

If you need additional informations just ask.

--
Aug 10 2015