Add volatiles for x86-64 bits/mathinline.h
authorAndreas Jaeger <jaegerandi@gmail.com>
Wed, 9 May 2012 18:17:21 +0000 (20:17 +0200)
committerAndreas Jaeger <jaegerandi@gmail.com>
Wed, 9 May 2012 18:17:21 +0000 (20:17 +0200)
commitbdd74070cc94ca50f1096808977268981308d7d6
tree0fb127e5c545095be68437660edf024ee5e94bf4
parent91d8d69ec6bc407af06125c4c98f70e3a43f3b38
Add volatiles for x86-64 bits/mathinline.h

[BZ #14053]
GCC 4.7 might remove consecutive calls to e.g. lrintf since
the assembler instructions are the same and GCC does not know
that the result is different depending on the rounding mode.  For
SSE instructions, the control register is not available so there
is no way to inform GCC about this. Therefore the asms are marked
as volatile.
ChangeLog
NEWS
sysdeps/x86_64/fpu/bits/mathinline.h