Commit 3b54e10b by Jason Merrill

* tree.c (walk_tree): Set lineno.

From-SVN: r33604
parent 8fd05cb0
2000-05-01 Jason Merrill <jason@casey.cygnus.com>
* tree.c (walk_tree): Set lineno.
2000-05-01 Mark Mitchell <mark@codesourcery.com> 2000-05-01 Mark Mitchell <mark@codesourcery.com>
* exception.cc: Update license notice. * exception.cc: Update license notice.
...@@ -123,9 +127,9 @@ ...@@ -123,9 +127,9 @@
2000-04-24 Gabriel Dos Reis <gdr@codesourcery.com> 2000-04-24 Gabriel Dos Reis <gdr@codesourcery.com>
* call.c (standard_conversion): Accept conversion between * call.c (standard_conversion): Accept conversion between
COMPLEX_TYPEs COMPLEX_TYPEs.
* cvt.c (ocp_convert): Handle conversion to COMPLEX_TYPE * cvt.c (ocp_convert): Handle conversion to COMPLEX_TYPE.
2000-04-24 Zack Weinberg <zack@wolery.cumb.org> 2000-04-24 Zack Weinberg <zack@wolery.cumb.org>
......
...@@ -1245,6 +1245,11 @@ walk_tree (tp, func, data) ...@@ -1245,6 +1245,11 @@ walk_tree (tp, func, data)
{ {
int i, len; int i, len;
/* Set lineno here so we get the right instantiation context
if we call instantiate_decl from inlinable_function_p. */
if (statement_code_p (code) && !STMT_LINENO_FOR_FN_P (*tp))
lineno = STMT_LINENO (*tp);
/* Walk over all the sub-trees of this operand. */ /* Walk over all the sub-trees of this operand. */
len = first_rtl_op (code); len = first_rtl_op (code);
/* TARGET_EXPRs are peculiar: operands 1 and 3 can be the same. /* TARGET_EXPRs are peculiar: operands 1 and 3 can be the same.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment