Commit 41f2002c by Torbjorn Granlund

(build_binary_op): For *_DIV_EXPR, set shorten based on orig_op0.

From-SVN: r5669
parent d1b4b7c1
...@@ -1943,7 +1943,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) ...@@ -1943,7 +1943,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
else else
/* When dividing two signed integers, you have to promote to int. /* When dividing two signed integers, you have to promote to int.
E.g. (short) -32868 / (short) -1 doesn't fit in a short. */ E.g. (short) -32868 / (short) -1 doesn't fit in a short. */
shorten = TREE_UNSIGNED (op0); shorten = TREE_UNSIGNED (orig_op0);
common = 1; common = 1;
} }
break; break;
......
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