This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: In current gcc trunk: warning: dereferencing type-punned pointerwill break strict-aliasing rules


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]