summaryrefslogtreecommitdiffstats
path: root/winsup/w32api
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2008-06-25 01:45:02 +0000
committerHans-Peter Nilsson <hp@axis.com>2008-06-25 01:45:02 +0000
commit5592f939b4762cf0eda460d502f880baa179e201 (patch)
tree7ca59247975079e18eee83310a288e635639b886 /winsup/w32api
parent7b3e3bfd49bef27c5df703e9c079c0c1eb454ecc (diff)
downloadcygnal-5592f939b4762cf0eda460d502f880baa179e201.tar.gz
cygnal-5592f939b4762cf0eda460d502f880baa179e201.tar.bz2
cygnal-5592f939b4762cf0eda460d502f880baa179e201.zip
Fix strict-aliasing issues with _strtod_r and Storeinc.
* libc/stdlib/strtod.c (_strtod_r): Change local variables aadj, rv, rv0 from double to type U. Use accessor macros dval, dword0 and dword1 for all accesses except for the ULtod call, where rv.i replaces the pointer cast. * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use of access macros. Tweak comment. Remove #ifdef'd YES_ALIAS code. (dword0, dword1, dval): Define in terms of uncast union member access. Ditto for _DOUBLE_IS_32BITS variants. (Storeinc): Replace aliasing-flawed microoptimized definition with alternative suggested in comment. Remove now stale comment.
Diffstat (limited to 'winsup/w32api')
0 files changed, 0 insertions, 0 deletions