This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3 more debug hooks
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: 3 more debug hooks
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 14 Aug 2001 15:33:31 -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>
- References: <20010814141137.A8504@redhat.com> <289080000.997826281@warlock.codesourcery.com>
On Tue, Aug 14, 2001 at 02:58:01PM -0700, Mark Mitchell wrote:
> It still seems cleaner to me to pass in the FILE*, rather than
> having to look in global (or thread-specific) data...
I don't. I think its moderately annoying to have to pass around
yet another cookie everywhere. There is a time and a place for
global data, and I think this is one of them.
Besides: asm_out_file is used in basically all of the backends,
and there we have no way to pass down an extra cookie.
r~