summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-08 16:30:06 +0000
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-08 16:30:06 +0000
commit58111f65c1d006a4a124b1145e464661da723725 (patch)
tree3bbb84d25a1cfec91a39ab3db2018ee799d1ab7c
parent1d56a3499dcb3c748e97886c94955bbc06896130 (diff)
downloadgcc-58111f65c1d006a4a124b1145e464661da723725.tar.gz
Fix Solaris bootstrap
2015-10-08 Martin Jambor <mjambor@suse.cz> * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove unnecessary MIN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228607 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-cp.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7ae4f39fb7d..d7820e41141 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-10-08 Martin Jambor <mjambor@suse.cz>
+
+ * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
+ unnecessary MIN.
+
2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
* tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index 0d9fdee79b6..d9d81f1e096 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -852,8 +852,8 @@ ipcp_alignment_lattice::meet_with_1 (unsigned new_align, unsigned new_misalign)
}
if (misalign != (new_misalign % align))
{
- int diff = abs (misalign - (new_misalign % align));
- align = MIN (align, (unsigned) diff & -diff);
+ int diff = abs ((int) misalign - (int) (new_misalign % align));
+ align = (unsigned) diff & -diff;
if (align)
misalign = misalign % align;
else