diff options
author | Richard Guenther <rguenther@suse.de> | 2009-03-31 13:16:36 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-03-31 13:16:36 +0000 |
commit | 108f6c2f4efe0141c859eeb52fae610b8806ffc8 (patch) | |
tree | 3df6a2c649d9c629a5bac8622a791c03866243b3 /gcc/fold-const.c | |
parent | 8f6121903f11d285d7494ae15bb9d36a27e1a405 (diff) | |
download | gcc-108f6c2f4efe0141c859eeb52fae610b8806ffc8.zip gcc-108f6c2f4efe0141c859eeb52fae610b8806ffc8.tar.gz gcc-108f6c2f4efe0141c859eeb52fae610b8806ffc8.tar.bz2 |
tree.h (div_if_zero_remainder): Declare.
2009-03-31 Richard Guenther <rguenther@suse.de>
* tree.h (div_if_zero_remainder): Declare.
* fold-const.c (div_if_zero_remainder): Export.
* tree-ssa-forwprop.c
(forward_propagate_addr_into_variable_array_index): Handle
constant array index addition outside of the variable index.
* gcc.dg/tree-ssa/forwprop-12.c: New testcase.
From-SVN: r145343
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index a56e885..4951600 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -874,7 +874,7 @@ div_and_round_double (enum tree_code code, int uns, of type CODE and returns the quotient. Otherwise returns NULL_TREE. */ -static tree +tree div_if_zero_remainder (enum tree_code code, const_tree arg1, const_tree arg2) { unsigned HOST_WIDE_INT int1l, int2l; |