pro64-support
[Top] [All Lists]

Re: Column no. info required

To: Rajalakshmi Iyer <rajiyer@xxxxxxxxxx>
Subject: Re: Column no. info required
From: Andi Kleen <ak@xxxxxxx>
Date: Tue, 2 Jan 2001 08:41:49 +0100
Cc: pro64-support@xxxxxxxxxxx, hammigi@xxxxxxxxxx, svivek@xxxxxxxxxx
In-reply-to: <000001c07483$63c38670$3901a8c0@xxxxxxxxxxxxxxxxxxx>; from rajiyer@xxxxxxxxxx on Tue, Jan 02, 2001 at 11:45:21AM +0530
References: <000001c07483$63c38670$3901a8c0@xxxxxxxxxxxxxxxxxxx>
Sender: owner-pro64-support@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Tue, Jan 02, 2001 at 11:45:21AM +0530, Rajalakshmi Iyer wrote:
> 
> We are using the SGI Pro64 compiler version 0.01.0-12 and are mainly
> interested in the intermediate representation produced by the compiler.
> 
> We need to make certain changes in a sample source code based on the
> information provided by the intermediate representation.
> 
> We are not able to get the proper source position information of a statement
> node. We have used the APIs provided in the file srcpos.h. Although we are
> getting proper line number information, the column number information is
> incorrect (it is always 0). We also tried having 2 statements on the same
> line.

Normal gcc frontend does not supply column information, because that requires 
a builtin preprocessor to be meaningfull. Latest gcc 2.97 optionally 
supports a preprocessor now, but I guess the gcc snapshot used in pro64 is too
old to have that already. You would probably need to port a newer snapshot.


-Andi

<Prev in Thread] Current Thread [Next in Thread>