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

Paul Bone pbone at csse.unimelb.edu.au
Fri Dec 25 18:01:35 AEDT 2009


On Thu, Dec 24, 2009 at 05:46:42PM +1100, Mark Brown wrote:
> 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?

I think Matt Guica told me that this worked, or at least that he recommended it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/developers/attachments/20091225/04a37791/attachment.sig>


More information about the developers mailing list