This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [google]Pass --save-temps to the assembler (issue4436049)
- From: Michael Meissner <meissner at linux dot vnet dot ibm dot com>
- To: Easwaran Raman <eraman at google dot com>
- Cc: reply at codereview dot appspotmail dot com, dnovillo at google dot com, gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Apr 2011 15:07:16 -0400
- Subject: Re: [google]Pass --save-temps to the assembler (issue4436049)
- References: <20110419190209.35780220AA4@agni2.mtv.corp.google.com>
On Tue, Apr 19, 2011 at 12:02:08PM -0700, Easwaran Raman wrote:
> This makes the gcc driver pass the --save-temps option to the assembler or assembler wrapper so that post-assembly tools like MAO can be integrated. Bootstraps on x86_64. Ok for google/main?
>
> 2011-04-19 Easwaran Raman <eraman@google.com>
>
> * gcc/gcc.c (static const char *asm_options): Pass
> --save-temps to the assembler.
>
> Index: gcc/gcc.c
> ===================================================================
> --- gcc/gcc.c (revision 172727)
> +++ gcc/gcc.c (working copy)
> @@ -780,7 +780,7 @@ static const char *asm_options =
> #if HAVE_GNU_AS
> /* If GNU AS is used, then convert -w (no warnings), -I, and -v
> to the assembler equivalents. */
> -"%{v} %{w:-W} %{I*} "
> +"%{v} %{w:-W} %{I*} %{save-temps:--save-temps} "
> #endif
> "%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}";
This patch should also support -save-temps=obj.
--
Michael Meissner, IBM
5 Technology Place Drive, M/S 2757, Westford, MA 01886-3141, USA
meissner@linux.vnet.ibm.com fax +1 (978) 399-6899