This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bootstrapping with objc enabled busted


Alan Modra wrote:-

> Seems to be fallout from 2002-07-07 Neil Booth.  cc1obj -E causes some
> initializations in lang_independent_init to be skipped, and later
> objc-act.c:synth_module_prologue does
> 	  create_builtin_decl (VAR_DECL, temp_type,
> 			       "_OBJC_SELECTOR_TABLE");

I've just applied this under the "obvious" rule.

Neil.

	* objc/objc-act.c (objc_init): Return immediately if filename
	is NULL.

Index: objc-act.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/objc/objc-act.c,v
retrieving revision 1.144
diff -u -p -r1.144 objc-act.c
--- objc-act.c	25 Jul 2002 21:18:24 -0000	1.144
+++ objc-act.c	29 Jul 2002 22:44:57 -0000
@@ -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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]