diff options
author | Jason Merrill <jason@casey.cygnus.com> | 2000-05-01 23:51:37 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-05-01 19:51:37 -0400 |
commit | 5062dbd5ae2d18db9d6e715b38ee2e0a724fcdcc (patch) | |
tree | 9b1f92405a1082371ff58eb6be57788162dc16bc /gcc/cp/tree.c | |
parent | cde28f0da4631eda8559c98fa329febb0f1d17fd (diff) | |
download | gcc-5062dbd5ae2d18db9d6e715b38ee2e0a724fcdcc.zip gcc-5062dbd5ae2d18db9d6e715b38ee2e0a724fcdcc.tar.gz gcc-5062dbd5ae2d18db9d6e715b38ee2e0a724fcdcc.tar.bz2 |
tree.c (build_target_expr_with_type): If we already have a TARGET_EXPR, just return it.
* tree.c (build_target_expr_with_type): If we already have a
TARGET_EXPR, just return it.
* optimize.c (initialize_inlined_parameters): Don't generate an
EXPR_STMT if we can just use DECL_INITIAL.
* decl.c (emit_local_var): Only make the initialization a
full-expression if stmts_are_full_exprs_p.
From-SVN: r33595
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index fe175f0..47209b2 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -294,6 +294,9 @@ build_target_expr_with_type (init, type) tree slot; tree rval; + if (TREE_CODE (init) == TARGET_EXPR) + return init; + slot = build (VAR_DECL, type); DECL_ARTIFICIAL (slot) = 1; DECL_CONTEXT (slot) = current_function_decl; |