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  <era...@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 is available for review at http://codereview.appspot.com/4436049

Reply via email to