This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3 more debug hooks
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: 3 more debug hooks
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 14 Aug 2001 14:58:01 -0700
- cc: Jason Merrill <jason_merrill at redhat dot com>, Neil Booth <neil at daikokuya dot demon dot co dot uk>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
--On Tuesday, August 14, 2001 02:11:37 PM -0700 Richard Henderson
<rth@redhat.com> wrote:
> On Tue, Aug 14, 2001 at 01:57:12PM -0700, Mark Mitchell wrote:
>> I've actually talked with people about making the compiler
>> multi-threaded, which would be the worst possible case; arbitrary
>> interleaving of everything.
>
> That's not nearly the same thing as multiple output files
> for a single compilation.
Oh, I see what you're saying. It still seems cleaner to me to pass
in the FILE*, rather than having to look in global (or thread-specific)
data, but your question is still interesting.
There are reasons you might want to do output to multiple files (for
example, to write out template instantiations to a repository in their
own .o files, rather than using sections, so as to avoid writing them
out if you already had them), so I think you might legitimately have
multiple open files at once, writing back and worth between them to
some extent. But, I bet that avoiding the interleaving wouldn't be
too hard either.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com