X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfigure.ac;h=6f32e55a1ae5d2f80340067fb6ea5b90db941d8a;hb=02eba61aa6cad683e96cf13f483adc04982c0c2b;hp=2fe9f78608cef8dde605fa5c7fb939bb2dd81d35;hpb=827041555ac443bd57340060f3e034fd7b199dd8;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/configure.ac b/gas/configure.ac index 2fe9f78608..6f32e55a1a 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -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-2020 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 @@ -50,10 +50,9 @@ AC_ARG_ENABLE(targets, *) enable_targets=$enableval ;; esac])dnl -ac_checking=yes -if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then - ac_checking= -fi +ac_checking= +. ${srcdir}/../bfd/development.sh +test "$development" = true && ac_checking=yes AC_ARG_ENABLE(checking, [ --enable-checking enable run-time checks], [case "${enableval}" in @@ -112,6 +111,17 @@ AC_ARG_ENABLE(generate_build_notes, no) ac_default_generate_build_notes=0 ;; esac])dnl +# Decide if the MIPS assembler should default to enable MIPS fix Loongson3 +# LLSC errata. +ac_default_mips_fix_loongson3_llsc=unset +# Provide a configuration option to override the default. +AC_ARG_ENABLE(mips-fix-loongson3-llsc, + AS_HELP_STRING([--enable-mips-fix-loongson3-llsc], + [enable MIPS fix Loongson3 LLSC errata]), +[case "${enableval}" in + yes) ac_default_mips_fix_loongson3_llsc=1 ;; + no) ac_default_mips_fix_loongson3_llsc=0 ;; +esac])dnl # Decide if the x86 ELF assembler should default to generating GNU x86 # used ISA and feature properties. @@ -125,6 +135,16 @@ AC_ARG_ENABLE(x86-used-note, no) ac_default_generate_x86_used_note=0 ;; esac])dnl +# Decide if the RISC-V ELF assembler should default to generating attribute. +ac_default_generate_riscv_attr=unset +# Provide a configuration option to override the default. +AC_ARG_ENABLE(default-riscv-attribute, + AS_HELP_STRING([--enable-default-riscv-attribute], + [generate RISC-V arch attribute by default]), +[case "${enableval}" in + yes) ac_default_generate_riscv_attr=1 ;; + no) ac_default_generate_riscv_attr=0 ;; +esac])dnl using_cgen=no @@ -410,6 +430,12 @@ changequote([,])dnl done ;; + bpf) + if test $this_target = $target ; then + AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.]) + fi + using_cgen=yes + ;; epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k) using_cgen=yes ;; @@ -663,6 +689,28 @@ AC_DEFINE_UNQUOTED(DEFAULT_X86_USED_NOTE, [Define to 1 if you want to generate GNU x86 used ISA and feature properties by default.]) +if test ${ac_default_generate_riscv_attr} = unset; then + case ${target_os} in + elf) + ac_default_generate_riscv_attr=1 + ;; + *) + ac_default_generate_riscv_attr=0 + ;; + esac +fi + +AC_DEFINE_UNQUOTED(DEFAULT_RISCV_ATTR, + $ac_default_generate_riscv_attr, + [Define to 1 if you want to generate RISC-V arch attribute by default.]) + +if test ${ac_default_mips_fix_loongson3_llsc} = unset; then + ac_default_mips_fix_loongson3_llsc=0 +fi +AC_DEFINE_UNQUOTED(DEFAULT_MIPS_FIX_LOONGSON3_LLSC, + $ac_default_mips_fix_loongson3_llsc, + [Define to 1 if you want to fix Loongson3 LLSC Errata by default.]) + if test x$ac_default_compressed_debug_sections = xyes ; then AC_DEFINE(DEFAULT_FLAG_COMPRESS_DEBUG, 1, [Define if you want compressed debug sections by default.]) fi