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
|