Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
August 06, 2012 [dmd-internals] dmd 2 on OpenBSD 5.1 | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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 |
August 06, 2012 Re: [dmd-internals] dmd 2 on OpenBSD 5.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Konstantin Staver Attachments:
| 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@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
|
August 06, 2012 Re: [dmd-internals] dmd 2 on OpenBSD 5.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright Attachments:
| Try to build with "-O -release", please. I attached history of my actions.
On Mon, Aug 6, 2012 at 8:44 PM, Walter Bright <walter@digitalmars.com> wrote:
> 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@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>
>
>
>
> _______________________________________________
> dmd-internals mailing list
> dmd-internals@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
|
August 06, 2012 Re: [dmd-internals] dmd 2 on OpenBSD 5.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Konstantin Staver Attachments:
| Still doesn't loop.
On 8/6/2012 10:57 AM, Konstantin Staver wrote:
> Try to build with "-O -release", please. I attached history of my actions.
>
>
> On Mon, Aug 6, 2012 at 8:44 PM, Walter Bright <walter@digitalmars.com> wrote:
>> 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@puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>>
>>
>>
>>
>> _______________________________________________
>> dmd-internals mailing list
>> dmd-internals@puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>>
>>
>> _______________________________________________
>> dmd-internals mailing list
>> dmd-internals@puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
|
August 06, 2012 Re: [dmd-internals] dmd 2 on OpenBSD 5.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On 6 aug 2012, at 20:50, Walter Bright wrote: > Still doesn't loop. Perhaps only on OpenBSD ? -- /Jacob Carlborg _______________________________________________ dmd-internals mailing list dmd-internals@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-internals |
August 06, 2012 Re: [dmd-internals] dmd 2 on OpenBSD 5.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright Attachments:
| Look my output, pls
On Mon, Aug 6, 2012 at 10:50 PM, Walter Bright <walter@digitalmars.com> wrote:
> Still doesn't loop.
>
>
> On 8/6/2012 10:57 AM, Konstantin Staver wrote:
>
> Try to build with "-O -release", please. I attached history of my actions.
>
>
> On Mon, Aug 6, 2012 at 8:44 PM, Walter Bright <walter@digitalmars.com> wrote:
>
> 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@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>
>
>
>
> _______________________________________________
> dmd-internals mailing list
> dmd-internals@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>
>
>
> _______________________________________________
> dmd-internals mailing list
> dmd-internals@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>
>
>
>
> _______________________________________________
> dmd-internals mailing list
> dmd-internals@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
|
August 06, 2012 Re: [dmd-internals] dmd 2 on OpenBSD 5.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Konstantin Staver Attachments:
| Sorry, it's not valid file :-( Look it
On Mon, Aug 6, 2012 at 11:42 PM, Konstantin Staver <mad.skipjack@gmail.com> wrote:
> Look my output, pls
>
> On Mon, Aug 6, 2012 at 10:50 PM, Walter Bright <walter@digitalmars.com> wrote:
>> Still doesn't loop.
>>
>>
>> On 8/6/2012 10:57 AM, Konstantin Staver wrote:
>>
>> Try to build with "-O -release", please. I attached history of my actions.
>>
>>
>> On Mon, Aug 6, 2012 at 8:44 PM, Walter Bright <walter@digitalmars.com> wrote:
>>
>> 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@puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>>
>>
>>
>>
>> _______________________________________________
>> dmd-internals mailing list
>> dmd-internals@puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>>
>>
>>
>> _______________________________________________
>> dmd-internals mailing list
>> dmd-internals@puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>>
>>
>>
>>
>> _______________________________________________
>> dmd-internals mailing list
>> dmd-internals@puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
|
Copyright © 1999-2021 by the D Language Foundation