[NIOS2] Fix disassembly of br.n instruction.
[deliverable/binutils-gdb.git] / gas / configure.ac
index 34e114aa089e1fac0e5fec40279a69226e7a9133..6a96bb70d7d5d0a5f153b6f067cd14544f74cff7 100644 (file)
@@ -3,7 +3,7 @@ dnl
 dnl And be careful when changing it!  If you must add tests with square
 dnl brackets, be sure changequote invocations surround it.
 dnl
-dnl   Copyright (C) 2012-2019 Free Software Foundation, Inc.
+dnl   Copyright (C) 2012-2021 Free Software Foundation, Inc.
 dnl
 dnl This file is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
@@ -242,6 +242,13 @@ for this_target in $target $canon_targets ; do
        AC_DEFINE(STRICTCOFF, 1, [Using strict COFF?])
        ;;
 
+      i386-*-linux-* | x86_64-*-linux-*)
+       if test ${this_target} = $target \
+          && test ${ac_default_generate_x86_used_note} = unset; then
+         ac_default_generate_x86_used_note=1
+       fi
+       ;;
+
       i386-*-solaris2 \
       | x86_64-*-solaris2 \
       | i386-*-solaris2.[[0-9]] \
@@ -422,7 +429,7 @@ changequote([,])dnl
     case ${cpu_type} in
 
       bfin)
-       for f in bfin-parse.o bfin-lex-wrapper.o; do
+       for f in config/bfin-parse.o config/bfin-lex-wrapper.o; do
          case " $extra_objects " in
            *" $f "*) ;;
            *) extra_objects="$extra_objects $f" ;;
@@ -447,7 +454,7 @@ changequote([,])dnl
        using_cgen=yes
        ;;
       m68k)
-       f=m68k-parse.o
+       f=config/m68k-parse.o
        case " $extra_objects " in
          *" $f "*) ;;
          *) extra_objects="$extra_objects $f" ;;
@@ -569,14 +576,45 @@ changequote([,])dnl
        AC_MSG_RESULT($enable_zol_ext)
        ;;
 
-      aarch64 | i386 | riscv | s390 | sparc)
+      aarch64 | i386 | s390 | sparc)
        if test $this_target = $target ; then
          AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
        fi
        ;;
 
+      riscv)
+        # --target=riscv[32|64]-*-*.  */
+        if test $this_target = $target ; then
+          AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
+        fi
+
+        # --with-arch=<value>.  The syntax of <value> is same as Gas option -march.
+        AC_MSG_CHECKING(for default configuration of --with-arch)
+        if test "x${with_arch}" != x; then
+        AC_DEFINE_UNQUOTED(DEFAULT_RISCV_ARCH_WITH_EXT, "$with_arch",
+                           [Define default value for RISC-V -march.])
+        fi
+        AC_MSG_RESULT($with_arch)
+
+        # --with-isa-spec=[2.2|20190608|20191213].
+        AC_MSG_CHECKING(for default configuration of --with-isa-spec)
+        if test "x${with_isa_spec}" != x; then
+          AC_DEFINE_UNQUOTED(DEFAULT_RISCV_ISA_SPEC, "$with_isa_spec",
+                             [Define default value for RISC-V -misa-spec.])
+        fi
+        AC_MSG_RESULT($with_isa_spec)
+
+        # --with-priv-spec=[1.9|1.9.1|1.10|1.11].
+        AC_MSG_CHECKING(for default configuration of --with-priv-spec)
+        if test "x${with_priv_spec}" != x; then
+          AC_DEFINE_UNQUOTED(DEFAULT_RISCV_PRIV_SPEC, "$with_priv_spec",
+                             [Define default value for RISC-V -mpriv-spec])
+        fi
+        AC_MSG_RESULT($with_priv_spec)
+        ;;
+
       rl78)
-       f=rl78-parse.o
+       f=config/rl78-parse.o
        case " $extra_objects " in
          *" $f "*) ;;
          *) extra_objects="$extra_objects $f" ;;
@@ -584,7 +622,7 @@ changequote([,])dnl
        ;;
 
       rx)
-       f=rx-parse.o
+       f=config/rx-parse.o
        case " $extra_objects " in
          *" $f "*) ;;
          *) extra_objects="$extra_objects $f" ;;
@@ -1038,3 +1076,5 @@ AC_CONFIG_COMMANDS([default],
  te_file=${te_file}])
 
 AC_OUTPUT
+
+GNU_MAKE_JOBSERVER
This page took 0.024123 seconds and 4 git commands to generate.