aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gimple-expr.c')
-rw-r--r--gcc/gimple-expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-expr.c b/gcc/gimple-expr.c
index 2ee87c2..9d8034c 100644
--- a/gcc/gimple-expr.c
+++ b/gcc/gimple-expr.c
@@ -124,7 +124,7 @@ useless_type_conversion_p (tree outer_type, tree inner_type)
/* Fixed point types with the same mode are compatible. */
else if (FIXED_POINT_TYPE_P (inner_type)
&& FIXED_POINT_TYPE_P (outer_type))
- return true;
+ return TYPE_SATURATING (inner_type) == TYPE_SATURATING (outer_type);
/* We need to take special care recursing to pointed-to types. */
else if (POINTER_TYPE_P (inner_type)