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]

Re: 3 more debug hooks




--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


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