summaryrefslogtreecommitdiff
path: root/ltsugar.m4
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-07-31 09:02:35 +0000
committerMike Frysinger <vapier@gentoo.org>2012-07-31 09:02:35 +0000
commit8511e960e28d0972159500e159df6edd06a1a23d (patch)
tree4c2f87236387d327efc3d3b4cf3834f8d642c1ac /ltsugar.m4
parenta732f66fb2fdc53e97f3254dd533d31379178804 (diff)
downloadbinutils-redhat-8511e960e28d0972159500e159df6edd06a1a23d.tar.gz
libiberty/md5: fix strict alias warnings
Current libiberty md5 code triggers these warnings with gcc-4.7.1 for me: libiberty/md5.c: In function ‘md5_finish_ctx’: libiberty/md5.c:117:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] libiberty/md5.c:118:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] The change below fixes things for me. The optimized output (-O2) is the same before/after my change on x86_64-linux. I imagine it'll be the same for most targets. It seems simpler than using a union on the md5_ctx buffer since these are the only two locations in the code where this occurs.
Diffstat (limited to 'ltsugar.m4')
0 files changed, 0 insertions, 0 deletions