Re: How to Properly Set a Tree Member Variable

2008-01-27 Thread Tom Browder
On Jan 27, 2008 11:11 AM, Tom Tromey <[EMAIL PROTECTED]> wrote: > > "Andreas" == Andreas Schwab <[EMAIL PROTECTED]> writes: ... > >> /* the following two lines give a gcc error: lvalue required as left > >> operand of assignment */ > >> DECL_SOURCE_FILE (parm_decl) = local_input_filename; > >>

Re: How to Properly Set a Tree Member Variable

2008-01-27 Thread Tom Tromey
> "Andreas" == Andreas Schwab <[EMAIL PROTECTED]> writes: >> "Tom Browder" <[EMAIL PROTECTED]> writes: >> /* the following two lines give a gcc error: lvalue required as left >> operand of assignment */ >> DECL_SOURCE_FILE (parm_decl) = local_input_filename; >> DECL_SOURCE_LINE (parm_decl) = l

Re: How to Properly Set a Tree Member Variable

2008-01-27 Thread Andreas Schwab
"Tom Browder" <[EMAIL PROTECTED]> writes: > I have the following lines of code: > > tree parm_decl; > ... > /* the following two lines give a gcc error: lvalue required as left > operand of assignment */ > DECL_SOURCE_FILE (parm_decl) = local_input_filename; > DECL_SOURCE_LINE (parm_decl) = l

How to Properly Set a Tree Member Variable

2008-01-27 Thread Tom Browder
I'm trying to help Tim Josling get the old gcc cobol front end code working with the gcc trunk again. I'm struggling with trying to learn usage of tree macros while dealing with code dating from about gcc 3.2 or so. I have the following lines of code: tree parm_decl; ... /* the following two