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

Mark Brown mark at csse.unimelb.edu.au
Thu Dec 24 17:46:42 AEDT 2009


Hi,

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?

Cheers,
Mark.

--------------------------------------------------------------------------
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