mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-25 01:55:33 +08:00
* expmed.c (expand_divmod): Add comment.
From-SVN: r121519
This commit is contained in:
parent
6d941be35f
commit
093253be06
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user