LHS of assignment

2005-08-01 Thread shreyas krishnan
Hi every one, Can some one please answer this. How do I get a tree node from an exisiting symbol for use in the LHS of a expression ? example a=10; thanks shrey

Help with Dependency question

2005-08-20 Thread shreyas krishnan
Hi, For this simple loop, I get the following distance and direction vector Distance {1,-1) Direction (2,0) for(J = 1; J <= N-1; J++) for(I = 1; I <= N-1; I++) { XX = X[I+1][J]; XY = X[I][J+1]; } Can some body explain why thats so ? thanks Shreyas

rtl line no

2005-09-11 Thread shreyas krishnan
Hi, Can anyone tell me if there is a way to find out roughly the source line no of a particular rtl instruction (if there is ) ? I believe tree has a link to the source line no, in which case how do I find out the source tree node for a particular rtl stmt ? I appreciate any ideas ... th

Re: rtl line no

2005-09-13 Thread shreyas krishnan
thanks, that works but it seems to require a -g. is there any flag which might also generate just this line information but avoid most of the other debug information. shrey On 9/11/05, Dale Johannesen <[EMAIL PROTECTED]> wrote: > > On Sep 11, 2005, at 8:09 AM, shreyas krishnan wrot

Symbolic replacement

2005-09-14 Thread shreyas krishnan
Hi, I am trying to find out whats the best way to do the following. I want to replace some pre-defined variables at a few pre-defined line with a new temperory variable. I guess the front-end should be the best place to do it. Do I need to do this for each rule in c-parse.y ? Is there a mor

pointer checking run time code

2005-09-17 Thread shreyas krishnan
Hi all, I am trying to insert code which before pointer dereferences would check if the pointer dereference is valid. As this might mean a lot of overhead, I was wondering where would be the best place to insert it so that the overhead can be opitimized away. Especially, I was wondering if an

Mapping range of addresses

2005-09-19 Thread shreyas krishnan
Hi , I am looking for an efficient data structure to map from a range of addresses to a single address. As it is used at runtime, I want it to be as efficient as possible, with perhaps updaing more important that retreiving. Are there any examples of such data structure ( and optimized

Re: Mapping range of addresses

2005-09-19 Thread shreyas krishnan
gt;>>> "shreyas" == shreyas krishnan <[EMAIL PROTECTED]> writes: > > shreyas> Hi , I am looking for an efficient data structure to map > shreyas> from a range of addresses to a single address. As it is > shreyas> used at runtime, I want it to be as

Marking conditional blocks

2005-10-21 Thread shreyas krishnan
Hi, I want to demarcate conditional statments similar to how NOTE's are use to make loop starts and ends. For example, an if statement would be marked before the if statement, before both the then and else branches and then finally at the end of the block. So can some body suggest as to where

A question on alias analysis

2005-10-23 Thread shreyas krishnan
Hi , I am overwhelmed with the jargon and world of alias analysis and different kinds of it. I was wondering if some one can help me with this simple question. Is deciding if a pointer is pointing to what segment (heap/otherwise) a simpler problem than exactly deciding the points to set? th

Passing an argument

2005-10-24 Thread shreyas krishnan
Hi, I need to do the following. I want to at run time run a data correction pass on some of my integer arrays. As the data needs correctioin often, it needs to be done just before the use of such an array. I am trying to do this in gcc by inserting a function (convert(int *))

Aliases crossing procedures

2005-10-27 Thread shreyas krishnan
Hi, I am trying to understand alias analysis. And currently using gcc 4.0 I find that it reports a pointer crossing procedure boundaries as pointing to anything even in the simplest case of a passsing by reference. I guess interproceural analysis is hard in general but is it so even in t

Broken versions

2005-10-29 Thread shreyas krishnan
Hi I detected build issues with 2 of the versions that I tried to build, one the latest version from CVS, the other- the improved alias branch. Both give me the following error. Would anyone else have faced it and found a fix or is it that these releases are not supposed to be used at this time ?

Re: Broken versions

2005-10-29 Thread shreyas krishnan
Sorry abt that, my source is mcore-elf and these are the options I use to configure, followed by gmake and gmake install. ./im-alias-source/configure --srcdir=../im-alias-source/ --target=mcore-elf --with-newlib --disable-threads --disable-multilib --disable-nls --prefix=/usr/local/gcc4-mcore --

Alias analysis of parameters

2005-11-25 Thread shreyas krishnan
Hi I am trying to understand the workings of alias analysis and why it behaves it a particular way. I am using the alias analysis branch of gcc4.0 I find that for the following snippet of code main() { foo(A) }