This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: dereferencing type-punned pointer will break strict-aliasing rules
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: howarth at bromo dot msbb dot uc dot edu (Jack Howarth)
- Cc: aph at redhat dot com (Andrew Haley), tromey at redhat dot com (Tom Tromey), java at gcc dot gnu dot org
- Date: Thu, 12 Oct 2006 19:06:59 -0400 (EDT)
- Subject: Re: dereferencing type-punned pointer will break strict-aliasing rules
>
> Andrew,
> I wonder why it only produces a single warning...
>
> ../../../gcc-4.2-20060928/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc:46: warning: dereferencing type-punned pointer will break strict-aliasing rules
>
> if the problem exists throughout the libjava sources? Or do
> you seem more occurances on your architecture?
Because Andrew is saying that we need to change more than just
where the warning is happening.
-- Pinski