diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dee8842..58f1ff3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-07-30 Neil Booth <neil@daikokuya.co.uk> + + * objc/objc-act.c (objc_init): Return immediately if filename + is NULL. + 2002-07-29 Eric Christopher <echristo@redhat.com> * config/mips/elf.h: Remove ecoff.h and gofast includes. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index f0a7170..42944a8 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -464,6 +464,8 @@ objc_init (filename) const char *filename; { filename = c_objc_common_init (filename); + if (filename == NULL) + return filename; /* Force the line number back to 0; check_newline will have raised it to 1, which will make the builtin functions appear |