configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
authorCarlos O'Donell <carlos@codesourcery.com>
Tue, 7 Aug 2007 18:33:16 +0000 (18:33 +0000)
committerCarlos O'Donell <carlos@gcc.gnu.org>
Tue, 7 Aug 2007 18:33:16 +0000 (18:33 +0000)
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.

From-SVN: r127275

gcc/ChangeLog
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/gcc.c

index fa267ee2c7f50edd97bf2282367e890a1f342531..498460c58c356f4f56c86b91728488597c76dcfc 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2007-08-07  Ian Lance Taylor  <iant@google.com>
 
        * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
index aba1bb54c5bfe94a489af9d3867482febcebe516..80f0dac7b23eb6b866cda0221217d950eff3d32b 100644 (file)
 #endif
 
 
-/* Define if you want all gimple types to be verified after gimplifiation. */
+/* Define if you want all gimple types to be verified after gimplifiation.
+   This is cheap. */
 #ifndef USED_FOR_TARGET
 #undef ENABLE_TYPES_CHECKING
 #endif
 #endif
 
 
+/* Define if using GNU as. */
+#ifndef USED_FOR_TARGET
+#undef HAVE_GNU_AS
+#endif
+
+
 /* Define if using GNU ld. */
 #ifndef USED_FOR_TARGET
 #undef HAVE_GNU_LD
index d7de8f0a96c243174e5a88a55b9f316436870758..31bfc400c6e6230889121e39a7dcb510de6a23e1 100755 (executable)
@@ -1834,6 +1834,13 @@ _ACEOF
 
 fi
 
+gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_GNU_AS $gnu_as
+_ACEOF
+
+
 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
index 1eecc61b486b25f2a808994868f30cdcd16ff71c..e1dc518a2a760800c1b8c66580105e42933ed078 100644 (file)
@@ -246,6 +246,9 @@ if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
        [Define to enable the use of a default assembler.])
 fi
 
+gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
+AC_DEFINE_UNQUOTED(HAVE_GNU_AS, $gnu_as, [Define if using GNU as.])
+
 AC_MSG_CHECKING([whether a default assembler was specified])
 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
   if test x"$gas_flag" = x"no"; then
index 3d4467791f1f548a49a1da223e3b7d17469b7274..fc85e2b23d057269d3f11f567ae00d3dcec487cc 100644 (file)
--- 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