diff options
author | Richard Sandiford <richard@codesourcery.com> | 2006-10-29 11:13:14 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2006-10-29 11:13:14 +0000 |
commit | 4551169f831b3b41c5ab40d5c8c94d22e479a41c (patch) | |
tree | bf8f66085211cfd059a02f06010d2a8b21c8d8da /gcc/config/mips | |
parent | 5f687d19e06bbdeccc7a0b6d831ae884d177b522 (diff) | |
download | gcc-4551169f831b3b41c5ab40d5c8c94d22e479a41c.zip gcc-4551169f831b3b41c5ab40d5c8c94d22e479a41c.tar.gz gcc-4551169f831b3b41c5ab40d5c8c94d22e479a41c.tar.bz2 |
configure.ac (HAVE_AS_NO_SHARED): New AC_DEFINE.
gcc/
* configure.ac (HAVE_AS_NO_SHARED): New AC_DEFINE. Test for the
-mno-shared assembler option on mips targets.
* configure, config.in: Regenerate.
* config/mips/linux.h (NO_SHARED_SPECS): New macro.
(DRIVER_SELF_SPECS): Define to NO_SHARED_SPECS if non-empty.
* config/mips/linux64.h (DRIVER_SELF_SPECS): Include NO_SHARED_SPECS.
From-SVN: r118138
Diffstat (limited to 'gcc/config/mips')
-rw-r--r-- | gcc/config/mips/linux.h | 9 | ||||
-rw-r--r-- | gcc/config/mips/linux64.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h index bed5e31..f84867a 100644 --- a/gcc/config/mips/linux.h +++ b/gcc/config/mips/linux.h @@ -179,3 +179,12 @@ Boston, MA 02110-1301, USA. */ %{profile:-lc_p} %{!profile: -lc}}" #define MD_UNWIND_SUPPORT "config/mips/linux-unwind.h" + +#ifdef HAVE_AS_NO_SHARED +/* Default to -mno-shared for non-PIC. */ +#define NO_SHARED_SPECS \ + "%{mshared|mno-shared|fpic|fPIC|fpie|fPIE:;:-mno-shared}", +#define DRIVER_SELF_SPECS NO_SHARED_SPECS +#else +#define NO_SHARED_SPECS +#endif diff --git a/gcc/config/mips/linux64.h b/gcc/config/mips/linux64.h index 4ccf938..8c189ff 100644 --- a/gcc/config/mips/linux64.h +++ b/gcc/config/mips/linux64.h @@ -21,7 +21,9 @@ Boston, MA 02110-1301, USA. */ /* Force the default endianness and ABI flags onto the command line in order to make the other specs easier to write. */ +#undef DRIVER_SELF_SPECS #define DRIVER_SELF_SPECS \ +NO_SHARED_SPECS \ "%{!EB:%{!EL:%(endian_spec)}}", \ "%{!mabi=*: -mabi=n32}" |