aboutsummaryrefslogtreecommitdiff
path: root/gas/configure
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-06-30 11:14:41 +0100
committerNick Clifton <nickc@redhat.com>2016-06-30 11:14:41 +0100
commit9004b6bd58b6203cb3d1de1ca8d6ce6fc140ae61 (patch)
treeda644cf9f56a80d9480c1bf94c67f2017ee5cd97 /gas/configure
parent534dbe460e692a9befd9aca0eb0812db47459a30 (diff)
downloadgdb-9004b6bd58b6203cb3d1de1ca8d6ce6fc140ae61.zip
gdb-9004b6bd58b6203cb3d1de1ca8d6ce6fc140ae61.tar.gz
gdb-9004b6bd58b6203cb3d1de1ca8d6ce6fc140ae61.tar.bz2
Allow ARC target to be configured with --with-cpu=<cpu-name>.
gas * config.in (TARGET_WITH_CPU): Undefine. * configure.ac: Add --with-cpu support, and define in config.h. * configure: Regenerate. * config/tc-arc.c: Use TARGET_WITH_CPU to select default CPU. * NEWS: Mention new configure option.
Diffstat (limited to 'gas/configure')
-rwxr-xr-xgas/configure18
1 files changed, 16 insertions, 2 deletions
diff --git a/gas/configure b/gas/configure
index b6298b5..b66f712 100755
--- a/gas/configure
+++ b/gas/configure
@@ -771,6 +771,7 @@ enable_x86_relax_relocations
enable_elf_stt_common
enable_werror
enable_build_warnings
+with_cpu
enable_nls
enable_maintainer_mode
with_system_zlib
@@ -1435,6 +1436,8 @@ Optional Packages:
--with-pic try to use only PIC/non-PIC objects [default=use
both]
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
+ --with-cpu=CPU default cpu variant is CPU (currently only supported
+ on ARC)
--with-system-zlib use installed libz
Some influential environment variables:
@@ -10982,7 +10985,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10985 "configure"
+#line 10988 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11088,7 +11091,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11091 "configure"
+#line 11094 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11828,6 +11831,17 @@ fi
ac_config_headers="$ac_config_headers config.h:config.in"
+
+# Check whether --with-cpu was given.
+if test "${with_cpu+set}" = set; then :
+ withval=$with_cpu;
+cat >>confdefs.h <<_ACEOF
+#define TARGET_WITH_CPU "${with_cpu}"
+_ACEOF
+
+fi
+
+
# PR 14072