http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53285
Bug #: 53285
Summary: libibiberty's md5.c builds with warnings with 4.7 and
trunk
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: [email protected]
ReportedBy: [email protected]
when libibiberty's md5.c is built using 4.7 or trunk on x86-linux, the
following warning is emitted:
md5.c: In function 'md5_finish_ctx':
md5.c:119:2: error: dereferencing type-punned pointer will break
strict-aliasing rules [-Werror=strict-aliasing]
*(md5_uint32 *) & ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3);
^
md5.c:120:2: error: dereferencing type-punned pointer will break
strict-aliasing rules [-Werror=strict-aliasing]
*(md5_uint32 *) & ctx->buffer[bytes + pad + 4] =
^
afaics this is the only warning emitted when building libiberty when built with
4.7 or trunk.