This is the mail archive of the gcc-help@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: warning: dereferencing type-punned pointer will break strict-aliasing rules


Brian Dessent wrote:

The best bet is to fix the invalid code.  The next best thing is
probably -fno-strict-aliasing.  This is a frequent and somewhat
sensitive topic on this mailing list, so I suggest you read the past
threads, e.g.
<http://www.google.com/search?num=100&q=site%3Agcc.gnu.org+inurl%3Aml+inurl%3A%22gcc-help%22+strict+aliasing+rules>.

Brian


Thanks for this, the -fno-strict-aliasing has stopped the warnings. I asked here because the www.gcc.gnu.org server appears to be down.


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