diff options
author | Martin Jambor <mjambor@suse.cz> | 2015-10-08 18:30:06 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2015-10-08 18:30:06 +0200 |
commit | 170f473b525d0af69dc4577186762a3519b952a4 (patch) | |
tree | 3bbb84d25a1cfec91a39ab3db2018ee799d1ab7c /gcc/ipa-cp.c | |
parent | 338976c2341aa9e89007338976546b9d907619db (diff) | |
download | gcc-170f473b525d0af69dc4577186762a3519b952a4.zip gcc-170f473b525d0af69dc4577186762a3519b952a4.tar.gz gcc-170f473b525d0af69dc4577186762a3519b952a4.tar.bz2 |
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.
From-SVN: r228607
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 0d9fdee..d9d81f1 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 |