http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59622
--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jan 9 20:09:33 2014 New Revision: 206492 URL: http://gcc.gnu.org/viewcvs?rev=206492&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/opt/pr59622-2.C trunk/gcc/testsuite/g++.dg/opt/pr59622-3.C trunk/gcc/testsuite/g++.dg/opt/pr59622-4.C trunk/gcc/testsuite/g++.dg/opt/pr59622-5.C Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-fold.c trunk/gcc/testsuite/ChangeLog