diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2008-03-27 14:53:57 +0000 |
---|---|---|
committer | Doug Gregor <dgregor@gcc.gnu.org> | 2008-03-27 14:53:57 +0000 |
commit | 525521b6ddb69a9f0478704e0eec2231c0923d2d (patch) | |
tree | 090934fe30a8019c24a7123ebc14a508495e1103 /gcc/cp/init.c | |
parent | 063cc99c4658d52b33b37f4173d304efa9c68b00 (diff) | |
download | gcc-525521b6ddb69a9f0478704e0eec2231c0923d2d.zip gcc-525521b6ddb69a9f0478704e0eec2231c0923d2d.tar.gz gcc-525521b6ddb69a9f0478704e0eec2231c0923d2d.tar.bz2 |
re PR bootstrap/35704 (Bootstrap failure on i686-apple-darwin9 at revision 133519 (take 2).)
2008-03-27 Douglas Gregor <doug.gregor@gmail.com>
PR obj-c++/35704
* typeck.c (build_x_compound_expr): Use cp_build_compound_expr.
(build_compound_expr): New, for compatibility with C
build_compound_expr.
(cp_build_compound_expr): Renamed from build_compound_expr.
(build_c_cast): New, for compatibility with C build_c_cast.
(cp_build_c_cast): Renamed from build_c_cast.
* init.c (build_vec_delete_1): Fix calls to build_compound_expr.
* decl.c (cxx_maybe_build_cleanup): Ditto.
* cp-tree.h (build_compound_expr): Add C-compatibile prototype.
(cp_build_compound_expr): Renamed from build_compound_expr.
(build_c_cast): Add C-compatible prototype.
(cp_build_c_cast): Renamed from build_c_cast.
* typeck2.c (build_functional_cast): Use cp_build_c_cast.
* parser.c (cp_parser_cast_expression): Fix call to build_c_cast.
2008-03-27 Douglas Gregor <doug.gregor@gmail.com>
PR obj-c++/35704
* objc-act.c (objc_build_component_ref): Fix call to
finish_class_member_access_expr.
(objc_generate_cxx_ctor_or_dtor): Fix call to
build_special_member_call.
From-SVN: r133643
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index dc4e988..6b2156d 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2528,15 +2528,13 @@ build_vec_delete_1 (tree base, tree maxindex, tree type, body = build_compound_expr (body, cp_build_modify_expr (tbase, NOP_EXPR, build2 (POINTER_PLUS_EXPR, ptype, tbase, tmp), - tf_warning_or_error), - tf_warning_or_error); + tf_warning_or_error)); body = build_compound_expr (body, build_delete (ptype, tbase, sfk_complete_destructor, - LOOKUP_NORMAL|LOOKUP_DESTRUCTOR, 1), - tf_warning_or_error); + LOOKUP_NORMAL|LOOKUP_DESTRUCTOR, 1)); loop = build1 (LOOP_EXPR, void_type_node, body); - loop = build_compound_expr (tbase_init, loop, tf_warning_or_error); + loop = build_compound_expr (tbase_init, loop); no_destructor: /* If the delete flag is one, or anything else with the low bit set, @@ -2582,7 +2580,7 @@ build_vec_delete_1 (tree base, tree maxindex, tree type, else if (!body) body = deallocate_expr; else - body = build_compound_expr (body, deallocate_expr, tf_warning_or_error); + body = build_compound_expr (body, deallocate_expr); if (!body) body = integer_zero_node; |