Re: [PATCH] PR 63721 IPA ICF cause atomic-comp-swap-release-acquire.c ICE

2014-11-07 Thread Jiong Wang
On 07/11/14 12:53, Martin Liška wrote: On 11/07/2014 10:52 AM, Jan Hubicka wrote: On 11/05/14 07:09, Jiong Wang wrote: the same ICE will happen on x86-64, if compile with -O2 -fPIC. the reason is for the following two functions, they are identical, so IPA-ICF pass try to transform the second

Re: [PATCH] PR 63721 IPA ICF cause atomic-comp-swap-release-acquire.c ICE

2014-11-07 Thread Jan Hubicka
> >> jeff > > Hello. > > I think the bug is a duplicate of PR63580 and there's working patch that can > bootstrap on x86_64-linux and no regression has been seen. > > Ready for trunk? > Thanks, > Martin > gcc/ChangeLog: > > 2014-11-07 Martin Liska > > * cgraphunit.c (cgraph_node::cr

Re: [PATCH] PR 63721 IPA ICF cause atomic-comp-swap-release-acquire.c ICE

2014-11-07 Thread Martin Liška
On 11/07/2014 10:52 AM, Jan Hubicka wrote: >> On 11/05/14 07:09, Jiong Wang wrote: >>> the same ICE will happen on x86-64, if compile with -O2 -fPIC. >>> >>> the reason is for the following two functions, they are identical, so >>> IPA-ICF >>> pass try to transform the second function to call the f

Re: [PATCH] PR 63721 IPA ICF cause atomic-comp-swap-release-acquire.c ICE

2014-11-07 Thread Jan Hubicka
> On 11/05/14 07:09, Jiong Wang wrote: > >the same ICE will happen on x86-64, if compile with -O2 -fPIC. > > > >the reason is for the following two functions, they are identical, so > >IPA-ICF > >pass try to transform the second function to call the first one directly. > > > >int > >atomic_compare_

Re: [PATCH] PR 63721 IPA ICF cause atomic-comp-swap-release-acquire.c ICE

2014-11-06 Thread Jeff Law
On 11/05/14 07:09, Jiong Wang wrote: the same ICE will happen on x86-64, if compile with -O2 -fPIC. the reason is for the following two functions, they are identical, so IPA-ICF pass try to transform the second function to call the first one directly. int atomic_compare_exchange_STRONG_RELEASE_

[PATCH] PR 63721 IPA ICF cause atomic-comp-swap-release-acquire.c ICE

2014-11-05 Thread Jiong Wang
the same ICE will happen on x86-64, if compile with -O2 -fPIC. the reason is for the following two functions, they are identical, so IPA-ICF pass try to transform the second function to call the first one directly. int atomic_compare_exchange_STRONG_RELEASE_ACQUIRE (int a, int b) { return __