aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixed-value.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-03-03 11:32:38 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-03-03 11:32:38 +0000
commit98fa4d3c024ffa9f808bda8e41d0d3736584146c (patch)
tree4ef7c1592a371016dc9b7da412d27ca3ed96bea1 /gcc/fixed-value.c
parent30d309aaf14343dc0e9f00c9cf37075afdfba905 (diff)
downloadgcc-98fa4d3c024ffa9f808bda8e41d0d3736584146c.zip
gcc-98fa4d3c024ffa9f808bda8e41d0d3736584146c.tar.gz
gcc-98fa4d3c024ffa9f808bda8e41d0d3736584146c.tar.bz2
fixed-value.c (fixed_from_string): Restore use of elt (1) in place of uhigh ().
2017-03-03 Richard Biener <rguenther@suse.de> * fixed-value.c (fixed_from_string): Restore use of elt (1) in place of uhigh (). (fixed_convert_from_real): Likewise. From-SVN: r245867
Diffstat (limited to 'gcc/fixed-value.c')
-rw-r--r--gcc/fixed-value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fixed-value.c b/gcc/fixed-value.c
index d9489a3..3cd44dd 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. */
{