From 98fa4d3c024ffa9f808bda8e41d0d3736584146c Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 3 Mar 2017 11:32:38 +0000 Subject: [PATCH] fixed-value.c (fixed_from_string): Restore use of elt (1) in place of uhigh (). 2017-03-03 Richard Biener * fixed-value.c (fixed_from_string): Restore use of elt (1) in place of uhigh (). (fixed_convert_from_real): Likewise. From-SVN: r245867 --- gcc/ChangeLog | 6 ++++++ gcc/fixed-value.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c99d7edb8e9..5db500e3350 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-03-03 Richard Biener + + * fixed-value.c (fixed_from_string): Restore use of elt (1) + in place of uhigh (). + (fixed_convert_from_real): Likewise. + 2017-03-03 Uros Bizjak PR target/79514 diff --git a/gcc/fixed-value.c b/gcc/fixed-value.c index d9489a3a576..3cd44dd74fc 100644 --- a/gcc/fixed-value.c +++ b/gcc/fixed-value.c @@ -131,7 +131,7 @@ fixed_from_string (FIXED_VALUE_TYPE *f, const char *str, machine_mode mode) wide_int w = real_to_integer (&fixed_value, &fail, GET_MODE_PRECISION (mode)); f->data.low = w.ulow (); - f->data.high = w.uhigh (); + f->data.high = w.elt (1); if (temp == FIXED_MAX_EPS && ALL_FRACT_MODE_P (f->mode)) { @@ -1050,7 +1050,7 @@ fixed_convert_from_real (FIXED_VALUE_TYPE *f, machine_mode mode, wide_int w = real_to_integer (&fixed_value, &fail, GET_MODE_PRECISION (mode)); f->data.low = w.ulow (); - f->data.high = w.uhigh (); + f->data.high = w.elt (1); temp = check_real_for_fixed_mode (&real_value, mode); if (temp == FIXED_UNDERFLOW) /* Minimum. */ { -- 2.30.2