Commit a7a05640 by Richard Kenner

(force_fit_type): Always propagate OVERFLOW.

From-SVN: r9138
parent a6108925
...@@ -187,7 +187,7 @@ force_fit_type (t, overflow) ...@@ -187,7 +187,7 @@ force_fit_type (t, overflow)
/* Unsigned types do not suffer sign extension or overflow. */ /* Unsigned types do not suffer sign extension or overflow. */
if (TREE_UNSIGNED (TREE_TYPE (t))) if (TREE_UNSIGNED (TREE_TYPE (t)))
return 0; return overflow;
/* If the value's sign bit is set, extend the sign. */ /* If the value's sign bit is set, extend the sign. */
if (prec != 2 * HOST_BITS_PER_WIDE_INT if (prec != 2 * HOST_BITS_PER_WIDE_INT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment