This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrapping with objc enabled busted
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: gcc-bugs at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org, Stan Shebs <shebs at apple dot com>
- Date: Mon, 29 Jul 2002 23:47:11 +0100
- Subject: Re: bootstrapping with objc enabled busted
- References: <20020729124526.GD26054@bubble.sa.bigpond.net.au>
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