]> gcc.gnu.org Git - gcc.git/commit
re PR objc/23710 (objc front-end should not "abort" after erroring out about method...
authorNicola Pero <nicola.pero@meta-innovation.com>
Tue, 21 Sep 2010 20:47:04 +0000 (20:47 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Tue, 21 Sep 2010 20:47:04 +0000 (20:47 +0000)
commit45547c7fcaaf0cb104de351360032af45948db09
treec7e866e855504d34b4f13d9b926527820acd5180
parentec5e67bf4f176448bfb868599cefb583110301f1
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
gcc/ChangeLog
gcc/c-family/c-common.h
gcc/c-family/stub-objc.c
gcc/c-parser.c
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/invalid-method-1.m [new file with mode: 0644]
This page took 0.069217 seconds and 5 git commands to generate.