re PR ipa/69241 (ICE with noreturn and function that return non-POD)
authorJakub Jelinek <jakub@redhat.com>
Wed, 10 Feb 2016 15:06:20 +0000 (16:06 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 10 Feb 2016 15:06:20 +0000 (16:06 +0100)
commite199dd0a2fc0d1ffea997f2ba5e42d4bc4c32518
treed04fa6cffeb76dd4444658f8e2f8360ed9d03342
parentd6b38027a031b8a4b74ff54129e0689822f483fc
re PR ipa/69241 (ICE with noreturn and function that return non-POD)

PR ipa/69241
PR c++/69649
* gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
calls if the return type is TREE_ADDRESSABLE.
* cgraphunit.c (cgraph_node::expand_thunk): Likewise.
* ipa-split.c (split_function): Fix doubled "we" in comment.
Use void return type for the split part even if
!split_point->split_part_set_retval.

* g++.dg/ipa/pr69241-1.C: New test.
* g++.dg/ipa/pr69241-2.C: New test.
* g++.dg/ipa/pr69241-3.C: New test.
* g++.dg/ipa/pr69649.C: New test.

Co-Authored-By: Patrick Palka <ppalka@gcc.gnu.org>
From-SVN: r233271
gcc/ChangeLog
gcc/cgraphunit.c
gcc/gimplify.c
gcc/ipa-split.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr69241-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ipa/pr69241-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ipa/pr69241-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ipa/pr69649.C [new file with mode: 0644]