parse.y (function_invocation, [...]): Pass location to tree_code_get_expression.
authorJames A. Morrison <phython@gcc.gnu.org>
Sat, 26 Feb 2005 16:07:49 +0000 (16:07 +0000)
committerJames A. Morrison <phython@gcc.gnu.org>
Sat, 26 Feb 2005 16:07:49 +0000 (16:07 +0000)
commitb12d3a1946961630567e688620ca9967de6a300e
tree7a5a07fc1d3a44f2efd5a27fd29b215571d2832f
parent7bcf4240fd314130140ebd7168666a8c50d748d1
parse.y (function_invocation, [...]): Pass location to tree_code_get_expression.

2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * parse.y (function_invocation, variable-ref, make_plus_expression):
        Pass location to tree_code_get_expression.
        * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
        (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
        set EXPR_LOCATION on ret1.
        * treetree.h (tree_code_get_expression): Take the location of the
        expression as an argument.

From-SVN: r95584
gcc/treelang/ChangeLog
gcc/treelang/parse.y
gcc/treelang/treetree.c
gcc/treelang/treetree.h