Re: [PATCH] Fix PR ipa/65465

2015-03-19 Thread Martin Liška
On 03/19/2015 06:13 PM, Jakub Jelinek wrote: On Thu, Mar 19, 2015 at 06:08:03PM +0100, Martin Liška wrote: >From 1b0416658cf59348664d44b14518c994075fd9bd Mon Sep 17 00:00:00 2001 From: mliska Date: Thu, 19 Mar 2015 15:36:34 +0100 Subject: [PATCH] Fix for PR ipa/65465. gcc/ChangeLog: 2015-03-1

Re: [PATCH] Fix PR ipa/65465

2015-03-19 Thread Jakub Jelinek
On Thu, Mar 19, 2015 at 06:08:03PM +0100, Martin Liška wrote: > >From 1b0416658cf59348664d44b14518c994075fd9bd Mon Sep 17 00:00:00 2001 > From: mliska > Date: Thu, 19 Mar 2015 15:36:34 +0100 > Subject: [PATCH] Fix for PR ipa/65465. > > gcc/ChangeLog: > > 2015-03-19 Martin Liska > > PR

[PATCH] Fix PR ipa/65465

2015-03-19 Thread Martin Liška
Hello. Following patch is fix for the PR. Problem is caused if we fill up cgraph_thunk_info with some values (e.g. virtual_value != 0) and further analysis set thunk_p = false. In all situations IPA ICF needs to reset all fields of the struct as it sets thunk_p = true. Tested on x86_64-linux-p