[Issue 24526] New: Upstream ldc optStrategy to disable optimizations in a function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 28 01:04:25 UTC 2024


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

          Issue ID: 24526
           Summary: Upstream ldc optStrategy to disable optimizations in a
                    function
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: alphaglosined at gmail.com

Being able to disable optimizations guarantees that the backend will not
subvert something that you explicitly wanted.

``@optStrategy("none")``

>From core.attributes.

This is useful for constant time equality for crypto libraries.

A request from Adam Wilson.

--


More information about the Digitalmars-d-bugs mailing list