summaryrefslogtreecommitdiff
path: root/gcc/ipa-cp.c
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 /gcc/ipa-cp.c
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
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r--gcc/ipa-cp.c4
1 files changed, 2 insertions, 2 deletions
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