[m-dev.] type punning with recent versions of gcc

Zoltan Somogyi zs at csse.unimelb.edu.au
Thu Dec 24 22:34:23 AEDT 2009


On 24-Dec-2009, Mark Brown <mark at csse.unimelb.edu.au> wrote:
> Is it worth trying to fix the Mercury libraries to avoid the type-punning
> warnings with recent versions of gcc?  There are lots of these, and at least
> some of them seem to cause either mmc or compiled programs to seg fault.
> 
> I think it would be better to just pass -fno-strict-aliasing to whatever
> compilers support it.  Any problems with that?

I don't think so.

Zoltan.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions:          mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the developers mailing list