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
+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>
{
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);
+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
--- /dev/null
+/* 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