This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] make info regression on --with-system-readline
> Date: Sat, 1 Jan 2011 12:39:55 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: gdb-patches@sourceware.org, tromey@redhat.com
>
> I do not see the point playing with gdb.info build optimization. It makes the
> currently situation worse only by 3.4%.
Unnecessarily re-creating files is a Bad Thing, IMO, even if it isn't
expensive on some platforms in some particular directory. For
starters, you lose the evidence of the products' time stamps for the
purposes of deducing when their prerequisites really changed.
> The same optimization should be applied first to version.in / version.c as
> currently whole gdb + gdbtui get relinked.
I agree.
> Or which operation would you like optimized?
This isn't necessarily about optimization of the build time. This is
about not rebuilding files that don't need to be rebuilt. We use Make
to avoid that even when a complete rebuild takes only a second or
less, don't we? Unnecessary rebuilds are like cancer: they spread all
around, because other files may depend on those you rebuild.