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: [PATCH] fixincludes to the toplevel: toplevel changes


DJ Delorie wrote:
-# Only make build libraries if build != host.
-if test ${host_alias} != ${build_alias} ; then
-  build_configdirs=`echo ${build_libs} ${build_tools}`
-else
-  build_configdirs=`echo ${build_tools}`
-fi
+build_configdirs=`echo ${build_libs} ${build_tools}`


I suspect this will be wasteful in a majority of the builds people do.
Can we make this so that ${build_libs} at least is still conditional?
We don't need the extra libiberty, for example.

This helps when the build compiler produces code incompatible with the stage1 compiler. It's a simplification which I've been wanting to do for a long time, actually. :-P


The extra libiberty does slow things down, but it
(a) gives a more reliable build
(b) doesn't slow things down *that* much, since libiberty is one of the smallest directories
(c) is in fact the *only* module which is built both for the host and for the build machine (and I would expect that to remain true)
(d) is already built redundantly for the target as well as the host (even when they're the same)


(If we ever get preinstall going, the redundancy can be eliminated in a cleaner way, of course.)

So I vote for doing this.


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