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]

dereferencing type-punned pointer will break strict-aliasing rules


    Has anyone noticed that we are breaking the strict-aliasing ruls in
natVMVirtualMachine.cc?

/sw/src/fink.build/gcc4-4.1.9999-20060928/darwin_objdir/./gcc/xgcc -shared-libgcc -B/sw/src/fink.build/gcc4-4.1.9999-20060928/darwin_objdir/./gcc -nostdinc++ -L/sw/src/fink.build/gcc
4-4.1.9999-20060928/darwin_objdir/powerpc-apple-darwin8/ppc64/libstdc++-v3/src -L/sw/src/fink.build/gcc4-4.1.9999-20060928/darwin_objdir/powerpc-apple-darwin8/ppc64/libstdc++-v3/src/
.libs -B/sw/lib/gcc4/powerpc-apple-darwin8/bin/ -B/sw/lib/gcc4/powerpc-apple-darwin8/lib/ -isystem /sw/lib/gcc4/powerpc-apple-darwin8/include -isystem /sw/lib/gcc4/powerpc-apple-darw
in8/sys-include -m64 -DHAVE_CONFIG_H -I. -I../../../../gcc-4.2-20060928/libjava -I./include -I./gcj -I../../../../gcc-4.2-20060928/libjava -Iinclude -I../../../../gcc-4.2-20060928/li
bjava/include -I../../../../gcc-4.2-20060928/libjava/classpath/include -Iclasspath/include -I../../../../gcc-4.2-20060928/libjava/classpath/native/fdlibm -I../../../../gcc-4.2-200609
28/libjava/../boehm-gc/include -I../boehm-gc/include -I../../../../gcc-4.2-20060928/libjava/libltdl -I../../../../gcc-4.2-20060928/libjava/libltdl -I../../../../gcc-4.2-20060928/libj
ava/.././libjava/../gcc -I../../../../gcc-4.2-20060928/libjava/../zlib -I../../../../gcc-4.2-20060928/libjava/../libffi/include -I../libffi/include -I/sw/include -fno-rtti -fnon-call
-exceptions -fdollars-in-identifiers -Wswitch-enum -D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/sw/lib/gcc4\" -DTOOLEXECLIBDIR=\"/sw/lib/gcc4/l
ib/ppc64\" -DJAVA_HOME=\"/sw/lib/gcc4\" -DBOOT_CLASS_PATH=\"/sw/lib/gcc4/share/java/libgcj-4.2.0.jar\" -DJAVA_EXT_DIRS=\"/sw/lib/gcc4/share/java/ext\" -DGCJ_ENDORSED_DIRS=\"/sw/lib/g
cc4/share/java/gcj-endorsed\" -DGCJ_VERSIONED_LIBDIR=\"/sw/lib/gcc4/lib/ppc64/gcj-4.2.0\" -DPATH_SEPARATOR=\":\" -DLIBGCJ_DEFAULT_DATABASE=\"/sw/lib/gcc4/lib/ppc64/gcj-4.2.0/classmap
.db\" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.2.0/classmap.db\" -g -O2 -m64 -MT gnu/classpath/jdwp/natVMVirtualMachine.lo -MD -MP -MF gnu/classpath/jdwp/.deps/natVMVirtualMachine
.Tpo -c ../../../../gcc-4.2-20060928/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc  -fno-common -DPIC -o gnu/classpath/jdwp/.libs/natVMVirtualMachine.o
../../../../gcc-4.2-20060928/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc: In static member function 'static void gnu::classpath::jdwp::VMVirtualMachine::initialize()':
../../../../gcc-4.2-20060928/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc:46: warning: dereferencing type-punned pointer will break strict-aliasing rules

Does this merit a bug report or how else should it be handled?
                          Jack


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