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

Re: [toplevel] Fix make install (PR 22440)


On Jul 14, 2005, Paolo Bonzini <paolo.bonzini@lu.unisi.ch> wrote:

>> This patch can not be correct; dependencies in make are not order
>> sensitive.

> Dependencies on phony targets are processed in order though, because
> they act as subroutines.

Not quite.  Although they do act as subroutines, there's nothing to
stop them from being processed in parallel, unless you explicitly add
deps to serialize them.  The GNU make manual, in fact, says, in the
context of using phony targets for sub-directories and recursive
makes:

<quote>

     foo: baz

   Here we've also declared that the `foo' subdirectory cannot be built
until after the `baz' subdirectory is complete; this kind of
relationship declaration is particularly important when attempting
parallel builds.

</quote>

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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