Re: Identifying Chain of Recurrence

2015-05-29 Thread Pritam Gharat
and recompiling the source code? Thanks, Pritam Gharat On Fri, May 29, 2015 at 10:34 AM, Bin.Cheng wrote: > On Fri, May 29, 2015 at 12:41 PM, Pritam Gharat > wrote: >> GCC builds a chain of recurrence to capture a pattern in which an >> array is accessed in a loop. Is there

Re: Identifying Pure and Const Functions

2015-05-29 Thread Pritam Gharat
identifies it as pure function __attribute__((pure)) int error() { return 2; } I am unable to understand why error function is not identified as a pure function by gcc? Are the checks to identify pure and const functions correct? Thanks, Pritam Gharat On Fri, May 29, 2015 at 1:26 PM, Mar

Identifying Pure and Const Functions

2015-05-29 Thread Pritam Gharat
Hi, How do we identify whether a function is a pure or a const function? Is there any flag associated with its cgraph_node or the tree node (decl of cgraph_node)? Thanks, Pritam Gharat

Identifying Chain of Recurrence

2015-05-28 Thread Pritam Gharat
GCC builds a chain of recurrence to capture a pattern in which an array is accessed in a loop. Is there any function which identifies that gcc has built a chain of recurrence? Is this information associated to the gimple assignment which accesses the array elements? Thanks, Pritam Gharat

Re: How to include header of stl in gcc?

2014-02-20 Thread Pritam Gharat
It worked. Thank You :-) On Thursday 20 February 2014 06:03 PM, Marc Glisse wrote: On Thu, 20 Feb 2014, Pritam Gharat wrote: I am using sets of stl in gcc. I need to perform operations like set union, set intersection and set difference for my analysis. These functions are defined in the

How to include header of stl in gcc?

2014-02-20 Thread Pritam Gharat
e/c++/4.7.2/cstdlib:127:11: error: attempt to use poisoned "realloc" make: *** [pointsto-callstrings.o] Error 1 How can I resolve this problem? -- Thanks, Pritam Gharat