<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Still doesn't loop.<br>
    <br>
    <div class="moz-cite-prefix">On 8/6/2012 10:57 AM, Konstantin Staver
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEqCpNC+CccGZCDpxcBMGCcAvJY2s=ZyWmROdbGEsOVqrPyNFw@mail.gmail.com"
      type="cite">
      <pre wrap="">Try to build with "-O -release", please. I attached history of my actions.


On Mon, Aug 6, 2012 at 8:44 PM, Walter Bright <a class="moz-txt-link-rfc2396E" href="mailto:walter@digitalmars.com"><walter@digitalmars.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">It doesn't loop when I try it.


On 8/6/2012 6:38 AM, Konstantin Staver wrote:

Hi to all!

I want to build dmd2 (git HEAD) with druntime and phobos on OpenBSD
5.1. I failed to build druntime. I found problem with D compiler. D
compiler loops when it tries to optimize code. For example, it doesn't
work:

//// my_mod.d

module my_mod;

void MyFunc()
{
    int[2] arr;
    for (size_t i =0; i < 2; ++i) {
        arr[i] = 1;
    }
}

///// end of my_mod.d

I attached gdb output. dmd loops with "while" of doptelem.

Give me a tip about solution of the problem, please. How to debug it
correctly?

Thanks



_______________________________________________
dmd-internals mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dmd-internals@puremagic.com">dmd-internals@puremagic.com</a>
<a class="moz-txt-link-freetext" href="http://lists.puremagic.com/mailman/listinfo/dmd-internals">http://lists.puremagic.com/mailman/listinfo/dmd-internals</a>




_______________________________________________
dmd-internals mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dmd-internals@puremagic.com">dmd-internals@puremagic.com</a>
<a class="moz-txt-link-freetext" href="http://lists.puremagic.com/mailman/listinfo/dmd-internals">http://lists.puremagic.com/mailman/listinfo/dmd-internals</a>
</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
dmd-internals mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dmd-internals@puremagic.com">dmd-internals@puremagic.com</a>
<a class="moz-txt-link-freetext" href="http://lists.puremagic.com/mailman/listinfo/dmd-internals">http://lists.puremagic.com/mailman/listinfo/dmd-internals</a></pre>
      </blockquote>
    </blockquote>
    <br>
    <br>
  </body>
</html>