PR tree-optimization/59622
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jan 2014 20:09:33 +0000 (20:09 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jan 2014 20:09:33 +0000 (20:09 +0000)
commitf70f513ff26c689fd62c2a6414a0adba6975dc6f
tree6ca99a99212dfd53b8fe2ea60d34b8cdff1d5e2d
parent759a44081b8c98d4100465628fddc79c8ec43e00
PR tree-optimization/59622
* gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
__builtin_unreachable replace the OBJ_TYPE_REF call with a call to
__builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
Don't devirtualize for inplace at all.  For targets.length () == 1,
if the call is noreturn and cfun isn't in SSA form yet, clear lhs.

* g++.dg/opt/pr59622-2.C: New test.
* g++.dg/opt/pr59622-3.C: New test.
* g++.dg/opt/pr59622-4.C: New test.
* g++.dg/opt/pr59622-5.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206492 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr59622-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/pr59622-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/pr59622-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/pr59622-5.C [new file with mode: 0644]