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]

Re: x-files must die: generate *config.h from the Makefile, etc


On Wed, Mar 07, 2001 at 12:55:49PM -0500, DJ Delorie wrote:
> 
> It looks OK at first glance, but I'd like to see it tested for
> multi-threaded builds.  Please try it with "make -j4 bootstrap" (and
> at least make 3.79); you don't need a multi-cpu machine to do that.

In the original message, I said I'd done that already (yes, with make
3.79).  But I have seen this test succeed on a uniprocessor and fail
on an N-way machine.

> I'm also concerned that now any trivial change in target header file
> will cause everything to be rebuilt, when often only a few files need
> rebuilding.  Since this was intentional before, people will complain
> if it's changed.

I suppose I could make the object files depend on *config.h but not
the files they include.  That would mimic the old behavior.  Thing is,
how do you tell which few files need to be rebuilt?  Every time I've
tried to guess, I've got it wrong.  And every so often someone gets
bit by this.  I'd rather make the dependencies formally correct, and
people who like the old way can edit the Makefile.

zw


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