This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for objc/23710
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: "Nicola Pero" <nicola dot pero at meta-innovation dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Sep 2010 00:15:15 +0200
- Subject: Re: Patch for objc/23710
- References: <1284853942.226126460@192.168.2.229>
> This patch fixes objc/23710 ("objc front-end should not
> "abort" after erroring out about method definition not in
> class context).
Please post ChangeLog in the body of the message.
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog (revision 164389)
+++ gcc/ChangeLog (working copy)
@@ -1,3 +1,14 @@
+2010-09-19 Nicola Pero <nicola.pero@meta-innovation.com>
+
+ PR/objc 23710
+ * c-family/c-common.h (objc_start_method_definition): Return bool
+ instead of void.
+ * c-family/stub-objc.c (objc_start_method_definition): Return bool
+ instead of void.
+ * c-parser.c (c_parser_objc_method_definition): Check the return
+ value of objc_start_method_definition and if false is returned,
+ parse the method definition but emit no code.
c-family/ has its own ChangeLog so the first 2 entries must be moved to there
without the prefix.
--
Eric Botcazou