diff options
author | obrien <obrien@FreeBSD.org> | 2007-12-11 03:35:39 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2007-12-11 03:35:39 +0000 |
commit | 845b8728c850f5b04122da48447e11095b956028 (patch) | |
tree | 06d8f739d7d86f5222b29c55138085f1eaabd43e /contrib/gcc | |
parent | 8bc41fcc02ff4a03b29c2a776d0866b0030bcdc2 (diff) | |
parent | 436a93024264937812e640ef90fafffe1587c715 (diff) | |
download | FreeBSD-src-845b8728c850f5b04122da48447e11095b956028.zip FreeBSD-src-845b8728c850f5b04122da48447e11095b956028.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r174531,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/gcc')
-rw-r--r-- | contrib/gcc/fold-const.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/gcc/fold-const.c b/contrib/gcc/fold-const.c index 5db1d84..ea16eae 100644 --- a/contrib/gcc/fold-const.c +++ b/contrib/gcc/fold-const.c @@ -5661,6 +5661,9 @@ extract_muldiv_1 (tree t, tree c, enum tree_code code, tree wide_type, } break; } + /* If the constant is negative, we cannot simplify this. */ + if (tree_int_cst_sgn (c) == -1) + break; /* FALLTHROUGH */ case NEGATE_EXPR: if ((t1 = extract_muldiv (op0, c, code, wide_type, strict_overflow_p)) |