This is the mail archive of the gcc-bugs@gcc.gnu.org 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]
Other format: [Raw text]

[Bug bootstrap/55556] New: gcc/exec-tool.in isn't parallel build safe in combined tree


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.


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