re PR other/37897 (decNumber functions break strict-aliasing rules)
authorJanis Johnson <janis187@us.ibm.com>
Mon, 27 Oct 2008 16:45:40 +0000 (16:45 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Mon, 27 Oct 2008 16:45:40 +0000 (16:45 +0000)
commit4a44abab56d863c6916cde14e67b78422a7a3f0a
tree130ea634c2b45eddb3c5bd4abf6babb041bd851a
parentcb1ca6ac11d48dc88a44579ed631c3d9d8a3402c
re PR other/37897 (decNumber functions break strict-aliasing rules)

PR other/37897
* decDouble.h (decDouble): Replace struct with union accessible
by more types.
* decSingle.h (decSingle): Ditto.
* decQuad.h (decQuad): Ditto.
* decNumberLocal.h (DFWORD, DFBYTE, DFWWORD): access decFloat via
new members.
* decBasic.c (decFloatCompareTotal): Avoid type-pun violation.
(decNumberCompare): Ditto.

From-SVN: r141386
libdecnumber/ChangeLog
libdecnumber/decBasic.c
libdecnumber/decDouble.h
libdecnumber/decNumberLocal.h
libdecnumber/decQuad.h
libdecnumber/decSingle.h