This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Using -save-temps and @file should also save the intermediate @file used by the driver?


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


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