This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [cs] re-order initialization
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Aug 2003 15:52:25 -0700
- Subject: Re: [cs] re-order initialization
- References: <3F454407.3040904@bothner.com>
Per Bothner <per@bothner.com> writes:
> Worth noting: The assembler output file is initialized
> and opened *before* we call cpp_read_main_file. This may
> be controversial: the code no longer looks for an initial
> #line directive in the input file to set the main_input_filename.
> However, doing so was a gross hack that seems pointless now that
> we have an integrated cpplib. For the few cases where you
> really need to compile already-pre-processed source file, and
> you for some reason care about the main_input_filename used,
> then you can specify --dumpbase.
The primary purpose of this was to (attempt to) get the behavior to
change as little as possible with -save-temps. It's probably also a
concern with ccache and distcc.
I would be delighted to see that gross hack go away on the mainline,
if you can make -save-temps DTRT and coordinate with the ccache/distcc
people so they still get the behavior they want.
zw