Commit 093253be by Ian Lance Taylor Committed by Ian Lance Taylor

* expmed.c (expand_divmod): Add comment.

From-SVN: r121519
parent 6d941be3
2007-02-02 Ian Lance Taylor <iant@google.com>
* expmed.c (expand_divmod): Add comment.
2007-02-02 Kazu Hirata <kazu@codesourcery.com>
* emit-rtl.c (renumber_insns): Remove.
......
......@@ -4176,6 +4176,9 @@ expand_divmod (int rem_flag, enum tree_code code, enum machine_mode mode,
HOST_WIDE_INT d = INTVAL (op1);
unsigned HOST_WIDE_INT abs_d;
/* Since d might be INT_MIN, we have to cast to
unsigned HOST_WIDE_INT before negating to avoid
undefined signed overflow. */
abs_d = (d >= 0
? (unsigned HOST_WIDE_INT) d
: - (unsigned HOST_WIDE_INT) d);
......
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