diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2016-06-30 11:14:41 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-06-30 11:14:41 +0100 |
commit | 9004b6bd58b6203cb3d1de1ca8d6ce6fc140ae61 (patch) | |
tree | da644cf9f56a80d9480c1bf94c67f2017ee5cd97 /gas/configure.ac | |
parent | 534dbe460e692a9befd9aca0eb0812db47459a30 (diff) | |
download | gdb-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.ac')
-rw-r--r-- | gas/configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gas/configure.ac b/gas/configure.ac index 8f71825..13f5107 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -106,6 +106,17 @@ AM_BINUTILS_WARNINGS # Generate a header file AC_CONFIG_HEADERS(config.h:config.in) +dnl Option --with-cpu=TYPE allows configure type control of the default +dnl cpu type within the assembler. Currently only the ARC target +dnl supports this feature, but others may be added in the future. +AC_ARG_WITH(cpu, + AS_HELP_STRING([--with-cpu=CPU], + [default cpu variant is CPU (currently only supported on ARC)]), + [AC_DEFINE_UNQUOTED(TARGET_WITH_CPU, + "${with_cpu}", + [Target specific CPU.])], + []) + # PR 14072 AH_VERBATIM([00_CONFIG_H_CHECK], [/* Check that config.h is #included before system headers |