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/decl.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/decl.c')
| -rw-r--r-- | gcc/cp/decl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index d9385f5..3853df1 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7871,9 +7871,13 @@ emit_local_var (decl) } /* Actually do the initialization. */ - expand_start_target_temps (); + if (stmts_are_full_exprs_p) + expand_start_target_temps (); + expand_decl_init (decl); - expand_end_target_temps (); + + if (stmts_are_full_exprs_p) + expand_end_target_temps (); } /* Finish processing of a declaration; |
