aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r--gcc/rust/rust-gcc.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index f17e19a..38169c0 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -411,11 +411,11 @@ tree
float_type (int bits)
{
tree type;
- if (bits == FLOAT_TYPE_SIZE)
+ if (bits == TYPE_PRECISION (float_type_node))
type = float_type_node;
- else if (bits == DOUBLE_TYPE_SIZE)
+ else if (bits == TYPE_PRECISION (double_type_node))
type = double_type_node;
- else if (bits == LONG_DOUBLE_TYPE_SIZE)
+ else if (bits == TYPE_PRECISION (long_double_type_node))
type = long_double_type_node;
else
{