This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH[3.0]: Parallel build problem and suggested fix.
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Subject: Re: PATCH[3.0]: Parallel build problem and suggested fix.
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 19 May 2001 23:07:00 -0300
- Cc: gcc-patches at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200105181701.MAA16941@zakon.math.purdue.edu>
On May 18, 2001, Brad Lucier <lucier@math.purdue.edu> wrote:
>> alloca.c:25:20: config.h: No such file or directory
> OK, here's my suggested patch for gcc/Makefile.in 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 <lucier@math.purdue.edu>, Alexandre Oliva <aoliva@redhat.com>
* Makefile.in (alloca.o): Depend on $(GCONFIG_H).
($(HOST_PREFIX_1)alloca.o): Depend on $(HCONFIG_H). Arrange for
hconfig.h to be included.
Index: gcc/Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/Makefile.in,v
retrieving revision 1.602.2.24
diff -u -p -r1.602.2.24 Makefile.in
--- gcc/Makefile.in 2001/05/17 01:34:29 1.602.2.24
+++ gcc/Makefile.in 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
$(CC) $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) \
@@ -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_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(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_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)alloca.c
$(HOST_PREFIX_1)obstack.o: $(srcdir)/../libiberty/obstack.c $(HCONFIG_H)
Thanks!
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me