diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 5 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/objc.dg/fsyntax-only.m | 11 |
4 files changed, 24 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ce3428b..87200bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index c6b9d5f..73e30d7 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -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); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ed51574..0dcf1ca 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/objc.dg/fsyntax-only.m b/gcc/testsuite/objc.dg/fsyntax-only.m new file mode 100644 index 0000000..54a879e --- /dev/null +++ b/gcc/testsuite/objc.dg/fsyntax-only.m @@ -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 |