Fix for PR ipa/63851 and ipa/63852.
authorMartin Liska <mliska@suse.cz>
Tue, 23 Dec 2014 09:30:20 +0000 (10:30 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 23 Dec 2014 09:30:20 +0000 (09:30 +0000)
commit34b42fb0ea1bdcdc0eb9dc5d90eeb780fa017923
tree21cf4b962e8b9239dfce8203f5cc735f3677ff0c
parent960389139b28506953843f0891925a58121443a7
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.

From-SVN: r219042
gcc/ChangeLog
gcc/ipa-icf-gimple.c
gcc/ipa-icf.c