Re: How to access points-to information for function pointers

2014-05-05 Thread Richard Biener
On Mon, May 5, 2014 at 1:27 PM, Swati Rathi wrote: > On Monday 05 May 2014 04:37 PM, Richard Biener wrote: >> >> On Mon, May 5, 2014 at 11:38 AM, Swati Rathi >> wrote: >>> >>> In some cases, GCC's pta pass does not dump the points-to information for >>> function pointers which are formal paramete

Re: How to access points-to information for function pointers

2014-05-05 Thread Swati Rathi
On Monday 05 May 2014 04:37 PM, Richard Biener wrote: On Mon, May 5, 2014 at 11:38 AM, Swati Rathi wrote: In some cases, GCC's pta pass does not dump the points-to information for function pointers which are formal parameters. Why is it so? Depends on the case. Also it does not store the in

Re: How to access points-to information for function pointers

2014-05-05 Thread Richard Biener
On Mon, May 5, 2014 at 11:38 AM, Swati Rathi wrote: > > In some cases, GCC's pta pass does not dump the points-to information for > function pointers which are formal parameters. > > Why is it so? Depends on the case. > Also it does not store the information for the corresponding SSA name. > > H

Re: How to access points-to information for function pointers

2014-05-05 Thread Swati Rathi
In some cases, GCC's pta pass does not dump the points-to information for function pointers which are formal parameters. Why is it so? Also it does not store the information for the corresponding SSA name. However, it dumps pointer information for the parameter variable as .constprop.0.arg0 = {

Re: How to access points-to information for function pointers

2014-04-29 Thread Richard Biener
On Tue, Apr 29, 2014 at 8:26 AM, Swati Rathi wrote: > On Monday 28 April 2014 02:46 PM, Richard Biener wrote: >> >> On Sat, Apr 26, 2014 at 4:07 PM, Richard Biener >> wrote: >>> >>> On April 26, 2014 12:31:34 PM CEST, Swati Rathi >>> wrote: On Friday 25 April 2014 11:11 PM, Richard Bie

Re: How to access points-to information for function pointers

2014-04-28 Thread Swati Rathi
On Monday 28 April 2014 02:46 PM, Richard Biener wrote: On Sat, Apr 26, 2014 at 4:07 PM, Richard Biener wrote: On April 26, 2014 12:31:34 PM CEST, Swati Rathi wrote: On Friday 25 April 2014 11:11 PM, Richard Biener wrote: On April 25, 2014 5:54:09 PM CEST, Swati Rathi wrote: Hello, I am

Re: How to access points-to information for function pointers

2014-04-28 Thread Richard Biener
On Sat, Apr 26, 2014 at 4:07 PM, Richard Biener wrote: > On April 26, 2014 12:31:34 PM CEST, Swati Rathi > wrote: >> >>On Friday 25 April 2014 11:11 PM, Richard Biener wrote: >>> On April 25, 2014 5:54:09 PM CEST, Swati Rathi >> wrote: Hello, I am trying to print points-to informa

Re: How to access points-to information for function pointers

2014-04-26 Thread Richard Biener
On April 26, 2014 12:31:34 PM CEST, Swati Rathi wrote: > >On Friday 25 April 2014 11:11 PM, Richard Biener wrote: >> On April 25, 2014 5:54:09 PM CEST, Swati Rathi > wrote: >>> Hello, >>> >>> I am trying to print points-to information for SSA variables as >below. >>> >>>for (i = 1; i < num_ss

Re: How to access points-to information for function pointers

2014-04-26 Thread Swati Rathi
On Friday 25 April 2014 11:11 PM, Richard Biener wrote: On April 25, 2014 5:54:09 PM CEST, Swati Rathi wrote: Hello, I am trying to print points-to information for SSA variables as below. for (i = 1; i < num_ssa_names; i++) { tree ptr = ssa_name (i); struct ptr_info_de

Re: How to access points-to information for function pointers

2014-04-25 Thread Richard Biener
On April 25, 2014 5:54:09 PM CEST, Swati Rathi wrote: >Hello, > >I am trying to print points-to information for SSA variables as below. > > for (i = 1; i < num_ssa_names; i++) > { > tree ptr = ssa_name (i); > struct ptr_info_def *pi; > > if (ptr == NULL_TREE > ||

How to access points-to information for function pointers

2014-04-25 Thread Swati Rathi
Hello, I am trying to print points-to information for SSA variables as below. for (i = 1; i < num_ssa_names; i++) { tree ptr = ssa_name (i); struct ptr_info_def *pi; if (ptr == NULL_TREE || SSA_NAME_IN_FREE_LIST (ptr)) continue; pi = SSA_NAME_PTR