This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] flag to create dump files in same directory as object files
On Tue, May 12, 2009 at 10:08 AM, Michael Meissner
<meissner@linux.vnet.ibm.com> wrote:
> My -save-temps=obj patch already puts the debug files in the object directory
> (in addition to the .s/.i/.ii files).
Ah, I see that now. I didn't realize it affected dump files as well.
I still think that dump files should, by default, go to the object
file directory. Admittedly, you get this behavior by also specifying
-save-temps=obj, but that, somewhat irrelevantly, enables creation of
.i/.ii/.s files. I can change the mechanism which sends dump files to
the object file directory to match your patch as I think yours is
cleaner (ie, send object directory to cc1 in -dumpbase rather than
prepend the object directory to dump_base_name inside cc1). However,
I can also revert the patch if this bike shed is considered painted.
Mark
>
> --
> Michael Meissner, IBM
> 4 Technology Place Drive, MS 2203A, Westford, MA, 01886, USA
> meissner@linux.vnet.ibm.com
>