[mercury-users] Re: segfault in hlc.gc when optimise-constructor-last-call is enabled

Michael Day mikeday at yeslogic.com
Wed Mar 9 18:16:50 AEDT 2011


Hi Zoltan,

> This is a different problem from mantis bug 103.

Oh right, guess I wasn't paying attention :)

> The short term fix, which I am testing now, is to disable the application of
> the lcmc optimization in cases where this may happen. I expect to be able
> to commit that tomorrow, so it should be in the rotd on friday. This should
> make your code work with lcmc, but it will not be able optimize the code
> in your test case.

This is great, fixes the bug, existing working code still works.

> The better fix would be to make floats unboxed in hlc grades as well
> if sizeof(double) == sizeof(void *), and to disable the workaround in
> that case. That has the additional advantage that it should make G12 code
> run significantly faster on current 64 bit platforms. The disadvantage is that
> it would take at least several days of work, and I don't have that time
> available.

Well, that would be nice too, when someone has time to get around to it.

Best regards,

Michael

-- 
Print XML with Prince!
http://www.princexml.com
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list