From 85bae5a160e288fa85eab8a5d1b0b227ab20798a Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 19 May 2015 11:23:56 -0700 Subject: [PATCH] soft-fp: Fix alpha kernel build problem * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R. --- ChangeLog | 2 ++ soft-fp/op-common.h | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c68ea67448..07f478a227 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2015-05-19 Richard Henderson + * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R. + * sysdeps/alpha/fpu/libm-test-ulps: Update. 2015-05-19 Siddhesh Poyarekar diff --git a/soft-fp/op-common.h b/soft-fp/op-common.h index 9c1c5e35f2..080ef0e9b9 100644 --- a/soft-fp/op-common.h +++ b/soft-fp/op-common.h @@ -1794,12 +1794,11 @@ __label__ pack_semiraw; \ if (r) \ { \ - rtype _FP_FROM_INT_ur; \ + rtype _FP_FROM_INT_ur = (r); \ \ if ((X##_s = ((r) < 0))) \ - (r) = -(rtype) (r); \ + _FP_FROM_INT_ur = -_FP_FROM_INT_ur; \ \ - _FP_FROM_INT_ur = (rtype) (r); \ _FP_STATIC_ASSERT ((rsize) <= 2 * _FP_W_TYPE_SIZE, \ "rsize too large"); \ (void) (((rsize) <= _FP_W_TYPE_SIZE) \ -- 2.43.5