[dmd-internals] dmd 2 on OpenBSD 5.1

Walter Bright walter at digitalmars.com
Mon Aug 6 09:44:39 PDT 2012


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
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-internals/attachments/20120806/eeb00fa2/attachment.html>


More information about the dmd-internals mailing list