http://www.perlmonks.org?node_id=1219259


in reply to Re^2: Calling HePV - "warning: dereferencing type-punned pointer will break strict-aliasing rules"
in thread Calling HePV - "warning: dereferencing type-punned pointer will break strict-aliasing rules"

This is an external XS module that I am compiling
Yes, but XS modules are normally compiled using a similar set of compiler flags to that used to compile perl itself. Which is why I'm surprised that -fno-strict-aliasing isn't being passed. Compiling XS code without that flag while using perl macros which are intended to be used with that flag, is asking for subtle optimiser bugs to be introduced into your compiled code.

Dave.