gimple-fold.c (gimple_fold_stmt_to_constant_1): Also check the TYPE_MODE to recognize...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 9 Dec 2011 21:11:21 +0000 (21:11 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 9 Dec 2011 21:11:21 +0000 (21:11 +0000)
commit8f420307e03a391b8e4bcd57be36d8d6325c7638
treebc6cf2a1adf2e08f2944731e840762fef0d4a29d
parent6d1c2bd3ae36584af0b6d288569c845e86600bda
gimple-fold.c (gimple_fold_stmt_to_constant_1): Also check the TYPE_MODE to recognize useless pointer conversions.

* gimple-fold.c (gimple_fold_stmt_to_constant_1) <GIMPLE_UNARY_RHS>:
Also check the TYPE_MODE to recognize useless pointer conversions.

From-SVN: r182178
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20111209-1.c [new file with mode: 0644]