[PATCH] Automatically generate dependencies for the build-machine object files

Tom Tromey tom@tromey.com
Tue Aug 23 16:40:00 GMT 2016


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

>> ISTM we ought to try and rectify the dependency situation for the build
>> bits.  The haphazard way we've managed dependencies may have made sense
>> in 1992, but doesn't today...
>> Jeff

Pedro> I can't imagine how would anyone disagree.  :-)  Maybe Tromey had
Pedro> some follow up patches (or ideas).  Adding him now.

It's been a while.  I think there were two major projects remaining.


One project is to make the build files use the same dependency tracking
scheme.

One tricky bit here is that you have to arrange to check the
dependency-tracking scheme for the host compiler.  I think the currently
proposed patch will fail if the build compiler requires one scheme while
the host compiler requires another.


The other project is to clean up the t-* and x-* config files to remove
explicit dependencies.

Once that's done it should be possible to remove a bunch of unnecessary
Makefile variables.  Once upon a time I wrote a script to find these:

    https://gcc.gnu.org/ml/gcc-patches/2013-07/msg01206.html


I don't have any patches other than the ones I sent.  At some point in
the distant past I converted the config files, but I don't have that
work any more.  It's in the history somewhere since IIRC it was checked
in and then backed out.

Tom



More information about the Gcc-patches mailing list