diff options
author | carlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-07 18:33:16 +0000 |
---|---|---|
committer | carlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-07 18:33:16 +0000 |
commit | c6429fa92ef5fe730ff70f91604e256f13407aa8 (patch) | |
tree | 8f287ee437c41a3903ba4afe49b27a7b7cc676d4 /gcc | |
parent | 58e13bdf758b37b53ccb81d8f8b058eb5b5d37f9 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config.in | 9 | ||||
-rwxr-xr-x | gcc/configure | 7 | ||||
-rw-r--r-- | gcc/configure.ac | 3 | ||||
-rw-r--r-- | gcc/gcc.c | 9 |
5 files changed, 33 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa267ee2c7f..498460c58c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config.in b/gcc/config.in index aba1bb54c5b..80f0dac7b23 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -121,7 +121,8 @@ #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 @@ -894,6 +895,12 @@ #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 diff --git a/gcc/configure b/gcc/configure index d7de8f0a96c..31bfc400c6e 100755 --- a/gcc/configure +++ b/gcc/configure @@ -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 diff --git a/gcc/configure.ac b/gcc/configure.ac index 1eecc61b486..e1dc518a2a7 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -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 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 |