In current gcc trunk: warning: dereferencing type-punned pointer will break strict-aliasing rules
Nathan Sidwell
nathan@codesourcery.com
Mon Jun 13 08:17:00 GMT 2005
Christian Joensson wrote:
> I'd just like to ask if this is noticed:
>
> /usr/local/src/trunk/gcc/gcc/unwind-dw2.c:324: warning: dereferencing
> type-punned pointer will break strict-aliasing rules
> /usr/local/src/trunk/gcc/gcc/unwind-dw2.c:789: warning: dereferencing
> type-punned pointer will break strict-aliasing rules
> /usr/local/src/trunk/gcc/gcc/unwind-dw2.c:1005: warning: dereferencing
> type-punned pointer will break strict-aliasing rules
> /usr/local/src/trunk/gcc/gcc/unwind-dw2-fde.c:1024: warning:
> dereferencing type-punned pointer will break strict-aliasing rules
> /usr/local/src/trunk/gcc/gcc/unwind-dw2-fde-glibc.c:393: warning:
> dereferencing type-punned pointer will break strict-aliasing rules
I had not noticed this, but looking at the first one it must have been caused by
my patch to the type punning warning. It also appears to be a correct warning,
in that we are breaking aliasing.
I shall look for a solution.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the Gcc
mailing list