* expmed.c (expand_divmod): Add comment.

From-SVN: r121519
This commit is contained in:
Ian Lance Taylor 2007-02-02 19:16:04 +00:00 committed by Ian Lance Taylor
parent 6d941be35f
commit 093253be06
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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);