summaryrefslogtreecommitdiff
path: root/gcc/c-family/stub-objc.c
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-21 20:47:04 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-21 20:47:04 +0000
commitd4a8fb2514035edd13c0930695ab30659c39f0b7 (patch)
treec7e866e855504d34b4f13d9b926527820acd5180 /gcc/c-family/stub-objc.c
parent5f7aa0fedd6ed97a31d908edbb0b2603783b0212 (diff)
downloadgcc-d4a8fb2514035edd13c0930695ab30659c39f0b7.tar.gz
PR objc/23710
In gcc/: * 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. In gcc/objc/: * objc-act.c (objc_start_method_definition): Do not abort upon a 'method definition not in @implementation context' error. Return 'false' instead. In gcc/testsuite/: * objc.dg/invalid-method-1.m: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164497 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/stub-objc.c')
-rw-r--r--gcc/c-family/stub-objc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-family/stub-objc.c b/gcc/c-family/stub-objc.c
index 3cb45d0734a..0ce1feffb41 100644
--- a/gcc/c-family/stub-objc.c
+++ b/gcc/c-family/stub-objc.c
@@ -184,9 +184,10 @@ objc_add_method_declaration (tree ARG_UNUSED (signature))
{
}
-void
+bool
objc_start_method_definition (tree ARG_UNUSED (signature))
{
+ return true;
}
void