This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] Reenable parallel build
- From: Laurent GUERBY <laurent at guerby dot net>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, Arnaud Charlet <charlet at adacore dot com>
- Date: Sat, 29 Mar 2008 15:45:50 +0100
- Subject: [Ada] Reenable parallel build
Is there any reason why parallel build is disabled in
gcc/ada/Makefile.in? It seems to come from an old commit:
2002-03-11 Richard Henderson <rth@redhat.com>
* Makefile.in (.NOTPARALLEL): Add fake tag.
>From the GNU Make manual:
.NOTPARALLEL
If .NOTPARALLEL is mentioned as a target, then this invocation
of make will be run serially, even if the `-j' option is given.
Any recursively invoked make command will still be run in
parallel (unless its makefile contains this target). Any
prerequisites on this target are ignored.
I tested the following patch at -j 8 on a bi quad core x86_64 (compile
farm gcc14), I did not encounter any issue and the c,ada -j 8 bootstrap
was about two time faster: from 20 to 12 minutes (mostly from RTS build
gain).
Ok to commit on trunk? Should I test and commit on 4.3 & 4.2 branches as
well?
Laurent
2008-03-29 Laurent Guerby <laurent@guerby.net>
* gcc/ada/Makefile.in: enable parallel make.
Index: Makefile.in
===================================================================
--- Makefile.in (revision 133715)
+++ Makefile.in (working copy)
@@ -56,10 +56,6 @@
# FLEX: Gnu flex works.
# Other miscellaneous tools for obscure targets.
-# Tell GNU make 3.79 not to run this directory in parallel.
-# Not all of the required dependencies are present.
-.NOTPARALLEL:
-
# Suppress smart makes who think they know how to automake Yacc files
.y.c: