diff options
Diffstat (limited to 'gas/configure')
-rwxr-xr-x | gas/configure | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/gas/configure b/gas/configure index ea85e1b..64de9f1 100755 --- a/gas/configure +++ b/gas/configure @@ -809,6 +809,7 @@ enable_x86_relax_relocations enable_elf_stt_common enable_generate_build_notes enable_x86_used_note +enable_default_riscv_attribute enable_werror enable_build_warnings with_cpu @@ -1471,6 +1472,8 @@ Optional Features: generate GNU Build notes if none are provided by the input --enable-x86-used-note generate GNU x86 used ISA and feature properties + --enable-default-riscv-attribute + generate RISC-V arch attribute by default --enable-werror treat compile warnings as errors --enable-build-warnings enable build-time compiler warnings --disable-nls do not use Native Language Support @@ -11337,7 +11340,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11340 "configure" +#line 11343 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11443,7 +11446,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11446 "configure" +#line 11449 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12125,6 +12128,16 @@ if test "${enable_x86_used_note+set}" = set; then : esac fi +# 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. +# Check whether --enable-default-riscv-attribute was given. +if test "${enable_default_riscv_attribute+set}" = set; then : + enableval=$enable_default_riscv_attribute; case "${enableval}" in + yes) ac_default_generate_riscv_attr=1 ;; + no) ac_default_generate_riscv_attr=0 ;; +esac +fi using_cgen=no @@ -13102,6 +13115,23 @@ cat >>confdefs.h <<_ACEOF _ACEOF +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 + + +cat >>confdefs.h <<_ACEOF +#define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr +_ACEOF + + if test x$ac_default_compressed_debug_sections = xyes ; then $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h |