[patch for] bootstrap failure on alloca-less hosts

Robert Lipe robertlipe@usa.net
Wed Feb 9 07:49:00 GMT 2000


Zack Weinberg wrote:
> On Wed, Feb 09, 2000 at 12:42:04AM -0600, Robert Lipe wrote:
> > This native compiler has no intrinsic alloca.  (Actually, it does but
> > autoconf doesn't know how to find it so most users won't bother to tell
> > it.)
> > 
> > Removing the alloca construct and replacing it with
> > ../libiberty/libiberty.a allows this hurdle to be crossed, but I have
> > a feeling this is wrong for some cross case or something.
> 
> gen-protos doesn't need either obstack.o or alloca.o.  In fact, I
> don't think it needs the HOST_LIBS at all.  Try taking $(HOST_LIBS)
> off the link line and $(HOST_LIBDEPS) off the dependency line.

Good call.  That does indeed allow compilation to proceed.  OK to
commit?

2000-02-09  Robert Lipe  <robertl@sco.com>

	* Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
	Don't link with HOST_LIBS.


Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/Makefile.in,v
retrieving revision 1.380
diff -u -p -r1.380 Makefile.in
--- Makefile.in	2000/02/08 21:27:01	1.380
+++ Makefile.in	2000/02/09 15:41:23
@@ -2247,9 +2247,9 @@ deduced.h: $(GCC_PASSES) $(srcdir)/scan-
 	fi
 
 GEN_PROTOS_OBJS = gen-protos.o scan.o
-gen-protos: $(GEN_PROTOS_OBJS) $(HOST_LIBDEPS)
+gen-protos: $(GEN_PROTOS_OBJS)
 	${HOST_CC} $(HOST_CFLAGS) $(HOST_LDFLAGS) -o gen-protos \
-	  $(GEN_PROTOS_OBJS) $(HOST_LIBS)
+	  $(GEN_PROTOS_OBJS)
 
 gen-protos.o: gen-protos.c scan.h $(build_xm_file) system.h
 	$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gen-protos.c


More information about the Gcc-patches mailing list