This is the mail archive of the 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]

Re: PATCH[3.0]: Parallel build problem and suggested fix.

On May 18, 2001, Brad Lucier <> wrote:

>> alloca.c:25:20: config.h: No such file or directory

> OK, here's my suggested patch for gcc/ to fix this.

Wow!  Curious that, after being broken for 2.5 years (at least, that's
when the #include <config.h> was last changed in libiberty/alloca.c),
this should be noticed and fixed just when it's no longer needed.
alloca.o is gone from mainline.  Here's what I'm checking in the
3.0 branch to fix the problem:

Index: gcc/ChangeLog
from  Brad Lucier  <>, Alexandre Oliva  <>

	* (alloca.o): Depend on $(GCONFIG_H).
	($(HOST_PREFIX_1)alloca.o): Depend on $(HCONFIG_H).  Arrange for
	hconfig.h to be included.

Index: gcc/
RCS file: /cvs/gcc/egcs/gcc/,v
retrieving revision 1.602.2.24
diff -u -p -r1.602.2.24
--- gcc/ 2001/05/17 01:34:29 1.602.2.24
+++ gcc/ 2001/05/20 02:03:00
@@ -1614,9 +1614,8 @@ mips-tdump.o : mips-tdump.c $(CONFIG_H) 
 halfpic.o: halfpic.c $(CONFIG_H) $(RTL_H) $(TREE_H) system.h
 # Normally this target is not used; but it is used if you
-# define ALLOCA=alloca.o.  In that case, you must get a suitable alloca.c
-# from the GNU Emacs distribution.
-alloca.o:	$(srcdir)/../libiberty/alloca.c
+# define ALLOCA=alloca.o.
+alloca.o:	$(srcdir)/../libiberty/alloca.c $(GCONFIG_H)
 	rm -f alloca.c
 	$(LN_S) $(srcdir)/../libiberty/alloca.c alloca.c
@@ -1895,9 +1894,9 @@ $(HOST_PREFIX_1)bitmap.o: $(srcdir)/bitm
 	sed -e 's/config[.]h/hconfig.h/' $(srcdir)/bitmap.c > $(HOST_PREFIX)bitmap.c
-$(HOST_PREFIX_1)alloca.o: $(srcdir)/../libiberty/alloca.c
+$(HOST_PREFIX_1)alloca.o: $(srcdir)/../libiberty/alloca.c $(HCONFIG_H)
 	rm -f $(HOST_PREFIX)alloca.c
-	$(LN_S) $(srcdir)/../libiberty/alloca.c $(HOST_PREFIX)alloca.c
+	sed -e 's/config[.]h/hconfig.h/' $(srcdir)/../libiberty/alloca.c > $(HOST_PREFIX)alloca.c
 $(HOST_PREFIX_1)obstack.o: $(srcdir)/../libiberty/obstack.c $(HCONFIG_H)


Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

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