aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorOlga Golovanevsky <olga@gcc.gnu.org>2007-04-24 15:54:18 +0000
committerOlga Golovanevsky <olga@gcc.gnu.org>2007-04-24 15:54:18 +0000
commit8173746830c9a85136a896bdb9eb3075a34e68e5 (patch)
tree2f22240d5b014bc7297afc02b7d4fb4dc1a9512a /gcc/fold-const.c
parent9905fb5e5fede0e4d865b3ba42b9ecb35e40c0c4 (diff)
downloadgcc-8173746830c9a85136a896bdb9eb3075a34e68e5.zip
gcc-8173746830c9a85136a896bdb9eb3075a34e68e5.tar.gz
gcc-8173746830c9a85136a896bdb9eb3075a34e68e5.tar.bz2
fix for PR31617
From-SVN: r124109
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 4e8f34f..7a8afcd 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -13216,6 +13216,7 @@ multiple_of_p (tree type, tree top, tree bottom)
case INTEGER_CST:
if (TREE_CODE (bottom) != INTEGER_CST
+ || integer_zerop (bottom)
|| (TYPE_UNSIGNED (type)
&& (tree_int_cst_sgn (top) < 0
|| tree_int_cst_sgn (bottom) < 0)))