This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/55556] New: gcc/exec-tool.in isn't parallel build safe in combined tree
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 01 Dec 2012 16:41:59 +0000
- Subject: [Bug bootstrap/55556] New: gcc/exec-tool.in isn't parallel build safe in combined tree
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55556
Bug #: 55556
Summary: gcc/exec-tool.in isn't parallel build safe in combined
tree
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hjl.tools@gmail.com
When bootstrap GCC and binutils in a combined-tree,
prev-gcc/as has
ORIGINAL_AS_FOR_TARGET="../gas/as-new"
...
dir=gas
prog=as-new
if test -x $scriptdir/../$dir/$prog; then
exec $scriptdir/../$dir/$prog
else
exec $scriptdir/../prev-$dir/$prog
fi
When we are building gas parallel with bintils,
gold, gprof and ld, we may run into race condition
that prev-gcc/as checks ../gas/as-new at the same
time when we are creating it.