This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using -save-temps and @file should also save the intermediate @file used by the driver?
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Ian Bolton <ian dot bolton at arm dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 10 May 2011 11:10:28 +0200
- Subject: Re: Using -save-temps and @file should also save the intermediate @file used by the driver?
- References: <-3825786209300228581@unknownmsgid>
On Tue, May 10, 2011 at 10:28 AM, Ian Bolton <ian.bolton@arm.com> wrote:
> Does anyone have some thoughts they'd like to share on this:
>
> "When you compile anything using @file support, the driver assumes @file
> (at_file_supplied is true) is allowed and may pass options to the linker via
> @file using a *temporary* file.
>
> When -save-temps is also used, the temporary @file passed to the linker
> should
> also be saved.
>
> Saving the temporary @file passed to the linker allows a developer to re-run
> just the collect2/ld command.
>
> On trunk this means that gcc/gcc.c (create_at_file) should honour the
> save_temps_flag, saving the temporary @file for later analysis or use."
For such driver bits you should specify -Wl,-debug which saves those
files.
Richard.
> From: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44273
>
>
>
>
>
>