From 46270f141bec8186f01faf7ec216c57fd81e1463 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Sat, 18 Dec 2010 20:28:07 +0000 Subject: In gcc/: 2010-12-18 Nicola Pero In gcc/: 2010-12-18 Nicola Pero * c-parser.c (c_parser_objc_try_catch_finally_statement): Call objc_maybe_warn_exceptions. (c_parser_objc_synchronized_statement): Call objc_maybe_warn_exceptions. In gcc/cp/: 2010-12-18 Nicola Pero * parser.c (cp_parser_objc_try_catch_finally_statement): Call objc_maybe_warn_exceptions. (cp_parser_objc_synchronized_statement): Same change. In gcc/c-family/: 2010-12-18 Nicola Pero * c-objc.h (objc_maybe_warn_exceptions): New. * stub-objc.c (objc_maybe_warn_exceptions): New. In gcc/objc/: 2010-12-18 Nicola Pero * objc-act.c (objc_init): Call using_eh_for_cleanups. (objc_init_exceptions): Renamed to objc_maybe_warn_exceptions. Do not call using_eh_for_cleanups. (objc_begin_try_stmt): Do not call objc_init_exceptions. (objc_build_throw_stmt): Updated call to objc_maybe_warn_exceptions. In gcc/testsuite/: 2010-12-18 Nicola Pero * objc.dg/fobjc-exceptions-1.m: Updated. * objc.dg/fobjc-exceptions-2.m: New. * objc.dg/fobjc-exceptions-3.m: New. * obj-c++.dg/fobjc-exceptions-1.mm: New. * obj-c++.dg/fobjc-exceptions-2.mm: New. * obj-c++.dg/fobjc-exceptions-3.mm: New. From-SVN: r168032 --- gcc/c-family/stub-objc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/c-family/stub-objc.c') diff --git a/gcc/c-family/stub-objc.c b/gcc/c-family/stub-objc.c index 0600c2f..e3aa98d 100644 --- a/gcc/c-family/stub-objc.c +++ b/gcc/c-family/stub-objc.c @@ -455,3 +455,8 @@ void objc_finish_function (void) { } + +void +objc_maybe_warn_exceptions (location_t ARG_UNUSED (loc)) +{ +} -- cgit v1.1