]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (int_binop_types_match_p): New function.
authorRoger Sayle <roger@eyesopen.com>
Sun, 12 Nov 2006 02:57:10 +0000 (02:57 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 12 Nov 2006 02:57:10 +0000 (02:57 +0000)
commit000d8d44b711707b56c75f2d1ebfa6ca046ec7ae
tree58a441d6fe7ffeccb38541fe24123167cc9fb14f
parentafa8f0fb33f62b3e9ea2fad0813372730d18295b
fold-const.c (int_binop_types_match_p): New function.

* fold-const.c (int_binop_types_match_p): New function.
(size_binop): Relax constraint that both arguments must both have
exactly the same sizetype type.  Instead use int_binop_types_match_p.
(size_diffop): Likewise.

(make_range): Use build_int_cst instead of fold_convert.
(fold_cond_expr_with_comparison): Use build_int_cst to construct
integer constants of the correct type.
(fold_div_compare): Likewise.
(fold_single_bit_test): Likewise.
(fold_binary): Likewise.
* stor-layout.c (layout_type) <VECTOR_TYPE>: Ensure that TYPE_SIZE
has type bitsizetype and TYPE_SIZE_UNIT has type sizetype.

From-SVN: r118718
gcc/ChangeLog
gcc/fold-const.c
gcc/stor-layout.c