diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-09-21 20:47:04 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-09-21 20:47:04 +0000 |
commit | 45547c7fcaaf0cb104de351360032af45948db09 (patch) | |
tree | c7e866e855504d34b4f13d9b926527820acd5180 /gcc/tree-sra.c | |
parent | ec5e67bf4f176448bfb868599cefb583110301f1 (diff) | |
download | gcc-45547c7fcaaf0cb104de351360032af45948db09.zip gcc-45547c7fcaaf0cb104de351360032af45948db09.tar.gz gcc-45547c7fcaaf0cb104de351360032af45948db09.tar.bz2 |
re PR objc/23710 (objc front-end should not "abort" after erroring out about method definition not in class context)
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.
From-SVN: r164497
Diffstat (limited to 'gcc/tree-sra.c')
0 files changed, 0 insertions, 0 deletions