Any way to workaround Optlink crash?

2009-08-31 Thread Denis Koroskin
I was refactoring the following line of code: foo(rand() % 256); -> foo(0); and that causes Optlink to crash now. Any reason why it does so? That particular file is just 157 lines long, but the whole project is quite big, although there are no large files. The biggest one is ~140K, it's from

Re: Any way to workaround Optlink crash?

2009-08-31 Thread Tom S
Denis Koroskin wrote: I was refactoring the following line of code: foo(rand() % 256); -> foo(0); and that causes Optlink to crash now. Any reason why it does so? That particular file is just 157 lines long, but the whole project is quite big, although there are no large files. The biggest

Re: Any way to workaround Optlink crash?

2009-08-31 Thread Max Samukha
Tom S wrote: > > And/or compile some modules without -g. Maybe you don't need debug > symbols everywhere. > > And please vote for http://d.puremagic.com/issues/votes.cgi?action=show_bug&bug_id=424. Something makes Walter think this bug is not critical.

Re: Any way to workaround Optlink crash?

2009-09-01 Thread Tom S
Max Samukha wrote: Tom S wrote: And/or compile some modules without -g. Maybe you don't need debug symbols everywhere. And please vote for http://d.puremagic.com/issues/votes.cgi?action=show_bug&bug_id=424. Something makes Walter think this bug is not critical. I think he knows... But it

Re: Any way to workaround Optlink crash?

2009-09-01 Thread Lars T. Kyllingstad
Tom S wrote: Max Samukha wrote: Tom S wrote: And/or compile some modules without -g. Maybe you don't need debug symbols everywhere. And please vote for http://d.puremagic.com/issues/votes.cgi?action=show_bug&bug_id=424. Something makes Walter think this bug is not critical. I think he k

Re: Any way to workaround Optlink crash?

2009-09-01 Thread Max Samukha
Tom S wrote: > Max Samukha wrote: >> Tom S wrote: >>> And/or compile some modules without -g. Maybe you don't need debug >>> symbols everywhere. >>> >>> >> >> And please vote for >> http://d.puremagic.com/issues/votes.cgi?action=show_bug&bug_id=424. >> Something makes Walter think this bug is not

Re: Any way to workaround Optlink crash?

2009-09-01 Thread Jérôme M. Berger
Max Samukha wrote: Tom S wrote: Max Samukha wrote: COFF/ELF output would not be that bad though, at least if there's some linker that supports these *and* its license allows it to be bundled with DMD. I doubt such a linker exists. And if it does, I doubt it is of quality good enough to replac

Re: Any way to workaround Optlink crash?

2009-09-01 Thread div0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jérôme M. Berger wrote: > Max Samukha wrote: >> Tom S wrote: >>> Max Samukha wrote: >>> COFF/ELF output would not be that bad though, at least if there's some >>> linker that supports these *and* its license allows it to be bundled >>> with DMD. >> >>

Re: Any way to workaround Optlink crash?

2009-09-02 Thread Nick Sabalausky
"Denis Koroskin" <2kor...@gmail.com> wrote in message news:h7hbe8$1sn...@digitalmars.com... >I was refactoring the following line of code: > > foo(rand() % 256); -> foo(0); > > and that causes Optlink to crash now. Any reason why it does so? > > That particular file is just 157 lines long, but the

Re: Any way to workaround Optlink crash?

2009-09-02 Thread Jérôme M. Berger
div0 wrote: Jérôme M. Berger wrote: Max Samukha wrote: Tom S wrote: Max Samukha wrote: COFF/ELF output would not be that bad though, at least if there's some linker that supports these *and* its license allows it to be bundled with DMD. I doubt such a linker exists. And if it does, I doubt it

Re: Any way to workaround Optlink crash?

2009-09-02 Thread grauzone
div0 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jérôme M. Berger wrote: Max Samukha wrote: Tom S wrote: Max Samukha wrote: COFF/ELF output would not be that bad though, at least if there's some linker that supports these *and* its license allows it to be bundled with DMD. I doubt s