Bug 752404

Summary: 7.6.5-0.6 - warning: dereferencing type-punned pointer will break strict-aliasing rules
Product: Red Hat Enterprise MRG Reporter: Matthew Farrellee <matt>
Component: condorAssignee: Timothy St. Clair <tstclair>
Status: CLOSED NOTABUG QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: tstclair
Target Milestone: 2.1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-10 20:56:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Matthew Farrellee 2011-11-09 12:26:28 UTC
4728  /builddir/build/BUILD/condor-7.6.4/src/condor_utils/fdpass.linux.cpp: In function 'int fdpass_send(int, int)':
4729  /builddir/build/BUILD/condor-7.6.4/src/condor_utils/fdpass.linux.cpp:47: warning: dereferencing type-punned pointer will break strict-aliasing rules
4730  /builddir/build/BUILD/condor-7.6.4/src/condor_utils/fdpass.linux.cpp: In function 'int fdpass_recv(int)':
4731  /builddir/build/BUILD/condor-7.6.4/src/condor_utils/fdpass.linux.cpp:108: warning: dereferencing type-punned pointer will break strict-aliasing rules
5933  /builddir/build/BUILD/condor-7.6.4/src/condor_utils/simplelist.h: In member function 'int CollectorList::sendUpdates(int, compat_classad::ClassAd*, compat_classad::ClassAd*, bool)':
5934  /builddir/build/BUILD/condor-7.6.4/src/condor_utils/simplelist.h:162: warning: dereferencing pointer 'd.185' does break strict-aliasing rules
5936  /builddir/build/BUILD/condor-7.6.4/src/condor_utils/simplelist.h: In member function 'QueryResult CollectorList::query(CondorQuery&, compat_classad::ClassAdList&, CondorError*)':
5937  /builddir/build/BUILD/condor-7.6.4/src/condor_utils/simplelist.h:162: warning: dereferencing pointer 'd.185' does break strict-aliasing rules
7989  /builddir/build/BUILD/condor-7.6.4/src/condor_gridmanager/gt4job.cpp: In function 'void gt4GramCallbackHandler(void*, const char*, const char*, const char*, int)':
7990  /builddir/build/BUILD/condor-7.6.4/src/condor_gridmanager/gt4job.cpp:139: warning: dereferencing type-punned pointer will break strict-aliasing rules

Comment 1 Timothy St. Clair 2011-11-10 16:28:49 UTC
I don't notice these warnings on F15 && RHEL5 (I do see on RHEL 6.1).  I'm wondering if this is a gcc version specific thing.  

gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.6.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.6.1 20110908 (Red Hat 4.6.1-9) (GCC)

Comment 4 Timothy St. Clair 2011-11-10 21:22:09 UTC
further ref: http://gcc.gnu.org/ml/gcc-help/2006-08/msg00240.html