OSDN Git Service

ChangeLog gcc/
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Jul 2011 12:11:28 +0000 (12:11 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Jul 2011 12:11:28 +0000 (12:11 +0000)
commit4b5f16587542d4fee5f60ec0b176c855ec68d6ec
tree3fcf31bae07e5780a558bd87b46dde066bfb218e
parent85c94a648d9d1527f687cb74522cbdf28b7289d3
ChangeLog gcc/

2011-07-21  Kai Tietz  <ktietz@redhat.com>

* fold-const.c (fold_unary_loc): Preserve indirect
comparison cast to none-boolean type.
* tree-ssa.c (useless_type_conversion_p): Preserve cast
from/to boolean-type.
* gimplify.c (gimple_boolify): Handle boolification
of comparisons.
(gimplify_expr): Boolifiy non aggregate-typed
comparisons.
* tree-cfg.c (verify_gimple_comparison): Check result
type of comparison expression.
* tree-ssa-forwprop.c (forward_propagate_comparison):
Adjust test of condition result and disallow type-cast
sinking into comparison.

ChangeLog gcc/testsuite

2011-07-21  Kai Tietz  <ktietz@redhat.com>

* gcc.dg/tree-ssa/pr30978.c: adjusted.
* gcc.dg/tree-ssa/ssa-fre-6.c: Likewise.
* gcc.dg/binop-xor1.c: Set to fail.
* gcc.dg/binop-xor3.c: Set to fail.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176563 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/binop-xor1.c
gcc/testsuite/gcc.dg/binop-xor3.c
gcc/testsuite/gcc.dg/tree-ssa/pr30978.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-6.c
gcc/tree-cfg.c
gcc/tree-ssa-forwprop.c
gcc/tree-ssa.c