r236506 - in /trunk/gcc: ChangeLog gimple-fold....

jakub@gcc.gnu.org jakub@gcc.gnu.org
Fri May 20 11:58:00 GMT 2016


Author: jakub
Date: Fri May 20 11:58:49 2016
New Revision: 236506

URL: https://gcc.gnu.org/viewcvs?rev=236506&root=gcc&view=rev
Log:
	PR c++/71210
	* gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
	calls if the LHS is variable length or has addressable type.
	If targets[0]->decl is a noreturn call with void return type and
	zero arguments, adjust fntype and remove lhs in that case.

	* g++.dg/opt/pr71210-1.C: New test.
	* g++.dg/opt/pr71210-2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/opt/pr71210-1.C
    trunk/gcc/testsuite/g++.dg/opt/pr71210-2.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-fold.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list