OSDN Git Service

* gimple-fold.c (gimple_fold_stmt_to_constant_1) <GIMPLE_UNARY_RHS>:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Dec 2011 21:11:21 +0000 (21:11 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Dec 2011 21:11:21 +0000 (21:11 +0000)
commit9772cb99871c37fc86bd3b2c977093e880e4ef3a
treebc6cf2a1adf2e08f2944731e840762fef0d4a29d
parentd1d905eead58c83899dfd2d91677cc1baa293fad
* gimple-fold.c (gimple_fold_stmt_to_constant_1) <GIMPLE_UNARY_RHS>:
Also check the TYPE_MODE to recognize useless pointer conversions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182178 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20111209-1.c [new file with mode: 0644]