This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/67097] gcov-tool merge (can) crash when dir2 contains files not in dir1
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Aug 2016 14:17:36 +0000
- Subject: [Bug gcov-profile/67097] gcov-tool merge (can) crash when dir2 contains files not in dir1
- Auto-submitted: auto-generated
- References: <bug-67097-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67097
--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Gilles Gouaillardet from comment #6)
> as a side note, would you be interested in me providing a patch so
> gcov-tool merge
> can merge n directories (currently, we are limited to n=2) ?
>
> i would implement that via a binary tree, so under the hood, that would
> require o(log(n)) elementary merge of two directories.
>
> for extreme merge, i can also add an option that specifies the temporary
> directory to be used (e.g. something different that /tmp/$TMPDIR)
If you have a use-case where it would be beneficial, why not ;)