Fix for PR ipa/63851 and ipa/63852.

	PR ipa/63851
	PR ipa/63852
	* ipa-icf.c (sem_function::merge): Ignore merge operation
	for a thunk created from static chain.
	* ipa-icf-gimple.c (func_checker::compatible_types_p): Verify that
	types have same restrict flag.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219042 138bc75d-0d04-0410-961f-82ee72b054a4