summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorcarlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-07 18:33:16 +0000
committercarlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-07 18:33:16 +0000
commitc6429fa92ef5fe730ff70f91604e256f13407aa8 (patch)
tree8f287ee437c41a3903ba4afe49b27a7b7cc676d4 /gcc/gcc.c
parent58e13bdf758b37b53ccb81d8f8b058eb5b5d37f9 (diff)
downloadgcc-c6429fa92ef5fe730ff70f91604e256f13407aa8.tar.gz
2007-08-07 Carlos O'Donell <carlos@codesourcery.com>
* configure.ac: Define HAVE_GNU_AS if $gas_flag is yes. * configure: Regenerate. * config.in: Regenerate. * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options spec string. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127275 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 3d4467791f1..fc85e2b23d0 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -824,8 +824,13 @@ static const char *cc1_options =
%{coverage:-fprofile-arcs -ftest-coverage}";
static const char *asm_options =
-"%{ftarget-help:%:print-asm-header()} \
-%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}";
+"%{--target-help:%:print-asm-header()} "
+#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*} "
+#endif
+"%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}";
static const char *invoke_as =
#ifdef AS_NEEDS_DASH_FOR_PIPED_INPUT