diff options
author | Devang Patel <dpatel@apple.com> | 2002-06-30 17:43:41 -0700 |
---|---|---|
committer | Stan Shebs <shebs@gcc.gnu.org> | 2002-07-01 00:43:41 +0000 |
commit | 118f8dc12c67534f18a8fe5c95b3319cf962bf14 (patch) | |
tree | 8e82e21c46417417240d47009d5e6347a838c8b6 | |
parent | d689a8f192d48eb835d585a019bd397f51a5b4e6 (diff) | |
download | gcc-118f8dc12c67534f18a8fe5c95b3319cf962bf14.zip gcc-118f8dc12c67534f18a8fe5c95b3319cf962bf14.tar.gz gcc-118f8dc12c67534f18a8fe5c95b3319cf962bf14.tar.bz2 |
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
-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 |