diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-05 09:03:42 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-05 09:03:42 +0000 |
commit | 4d28c5d1bd79990e131ac7994d9f3e8b4ea03b5d (patch) | |
tree | 267e3abff19f5eff30100b2ff7fa407469a91070 /gcc/tree.c | |
parent | 8bf71901fab1df87a505e7d4540de31ac3f87462 (diff) | |
download | gcc-4d28c5d1bd79990e131ac7994d9f3e8b4ea03b5d.tar.gz |
* tree.h (force_fit_type): Return a tree, take three flags.
* fold-const.c (force_fit_type): Set TREE_OVERFLOW and
TREE_CONSTANT_OVERFLOW here.
(int_const_binop, const_binop): Adjust.
(size_int_type): Do sign extension here.
(fold_convert_const, optimize_bit_field_compare,
decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
fold_negate_const, fold_abs_const, fold_not_const): Adjust.
* tree.c (size_in_bytes, int_fits_type_p): Adjust.
* cp/cvt.c (cp_convert_to_pointer): Adjust force_fit_type call.
* java/jcf-parse.c (get_constant): Adjust force_fit_type call.
* java/lex.h (SET_LVAL_NODE_TYPE): Remove.
* java/lex.c (java_perform_atof): Use SET_LVAL_NODE directly.
(do_java_lex): Likewise. Adjust force_fit_type call.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 30fcb556ab3..ef73afdbe6c 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1130,7 +1130,7 @@ size_in_bytes (tree type) } if (TREE_CODE (t) == INTEGER_CST) - force_fit_type (t, 0); + t = force_fit_type (t, 0, false, false); return t; } @@ -4563,7 +4563,8 @@ int_fits_type_p (tree c, tree type) { c = copy_node (c); TREE_TYPE (c) = type; - return !force_fit_type (c, 0); + c = force_fit_type (c, -1, false, false); + return !TREE_OVERFLOW (c); } } |