diff options
author | 2011-04-29 21:37:40 +0000 | |
---|---|---|
committer | 2011-04-29 21:37:40 +0000 | |
commit | 1241b6e5c944b6d49bc655963bfbca132ea279d8 (patch) | |
tree | a2887a6c62b837520038092dc83ac12c47270ba6 /lib/libc/stdlib/malloc.c | |
parent | sorry, lousy fingers... typoed in the file while checking the diff (diff) | |
download | wireguard-openbsd-1241b6e5c944b6d49bc655963bfbca132ea279d8.tar.xz wireguard-openbsd-1241b6e5c944b6d49bc655963bfbca132ea279d8.zip |
Trick GCC (-O2) into actually raising the underflow exception on m88k.
Since the second division operand is a power of two, non-zero,
non-nan, this got optimized (-O2) into multiplication. As a result
the underflow exception wasn't being raised properly.
Make the second operand a volatile to prevent incorrect optimizations.
OK miod@.
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions