objc-act.c (finish_file): Avoid finish_objc() if -fsyntax-only.
2002-06-30 Devang Patel <dpatel@apple.com> * objc/objc-act.c (finish_file): Avoid finish_objc() if -fsyntax-only. 2002-06-30 Devang Patel <dpatel@apple.com> * objc.dg/fsyntax-only.m: New test. From-SVN: r55125
This commit is contained in:
parent
d689a8f192
commit
118f8dc12c
|
@ -1,3 +1,8 @@
|
|||
2002-06-30 Devang Patel <dpatel@apple.com>
|
||||
|
||||
* objc/objc-act.c (finish_file): Avoid finish_objc() if
|
||||
-fsyntax-only.
|
||||
|
||||
Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
|
||||
Frank Ch. Eigler <fche@redhat.com>
|
||||
Matthew Green <mrg@redhat.com>
|
||||
|
|
|
@ -522,7 +522,10 @@ finish_file ()
|
|||
{
|
||||
c_objc_common_finish_file ();
|
||||
|
||||
finish_objc (); /* Objective-C finalization */
|
||||
/* Finalize Objective-C runtime data. No need to generate tables
|
||||
and code if only checking syntax. */
|
||||
if (!flag_syntax_only)
|
||||
finish_objc ();
|
||||
|
||||
if (gen_declaration_file)
|
||||
fclose (gen_declaration_file);
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2002-06-30 Devang Patel <dpatel@apple.com>
|
||||
|
||||
* objc.dg/fsyntax-only.m: New test.
|
||||
|
||||
2002-06-27 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/6695
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
/* Test -fsyntax-only compiler option */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-fsyntax-only" } */
|
||||
|
||||
@interface foo
|
||||
-(void) my_method:(int) i with:(int) j;
|
||||
@end
|
||||
|
||||
@implementation foo
|
||||
-(void) my_method:(int) i with:(int) j { }
|
||||
@end
|
Loading…
Reference in New Issue