summaryrefslogtreecommitdiffstats
path: root/gcc/objc
diff options
context:
space:
mode:
authordgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-27 14:53:57 +0000
committerdgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-27 14:53:57 +0000
commit717ecce9e70fa3c2648e8b160e75f1fb91332181 (patch)
tree090934fe30a8019c24a7123ebc14a508495e1103 /gcc/objc
parent83b01f73c3f6d481c030448f7f505aed568bbb57 (diff)
downloadppe42-gcc-717ecce9e70fa3c2648e8b160e75f1fb91332181.tar.gz
ppe42-gcc-717ecce9e70fa3c2648e8b160e75f1fb91332181.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133643 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/ChangeLog8
-rw-r--r--gcc/objc/objc-act.c5
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog
index 7584ed19d96..4b0b02837b7 100644
--- a/gcc/objc/ChangeLog
+++ b/gcc/objc/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2008-03-25 Andrew Pinski <pinskia@gmail.com>
PR objc/29197
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 48bf974fb36..9baa4da793f 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -1255,7 +1255,8 @@ objc_build_component_ref (tree datum, tree component)
front-end, but 'finish_class_member_access_expr' seems to be
a worthy substitute. */
#ifdef OBJCPLUS
- return finish_class_member_access_expr (datum, component, false);
+ return finish_class_member_access_expr (datum, component, false,
+ tf_warning_or_error);
#else
return build_component_ref (datum, component);
#endif
@@ -4493,7 +4494,7 @@ objc_generate_cxx_ctor_or_dtor (bool dtor)
(build_special_member_call
(build_ivar_reference (DECL_NAME (ivar)),
dtor ? complete_dtor_identifier : complete_ctor_identifier,
- NULL_TREE, type, LOOKUP_NORMAL));
+ NULL_TREE, type, LOOKUP_NORMAL, tf_warning_or_error));
}
}
OpenPOWER on IntegriCloud