comparison libgcc/configure @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
568 tmake_file 568 tmake_file
569 sfp_machine_header 569 sfp_machine_header
570 set_use_emutls 570 set_use_emutls
571 set_have_cc_tls 571 set_have_cc_tls
572 vis_hide 572 vis_hide
573 solaris_ld_v2_maps
573 real_host_noncanonical 574 real_host_noncanonical
574 accel_dir_suffix 575 accel_dir_suffix
575 force_explicit_eh_registry 576 force_explicit_eh_registry
577 CET_FLAGS
576 fixed_point 578 fixed_point
577 enable_decimal_float 579 enable_decimal_float
578 decimal_float 580 decimal_float
579 EGREP 581 EGREP
580 GREP 582 GREP
617 build_vendor 619 build_vendor
618 build_cpu 620 build_cpu
619 build 621 build
620 with_aix_soname 622 with_aix_soname
621 enable_vtable_verify 623 enable_vtable_verify
624 enable_gcov
622 enable_shared 625 enable_shared
623 libgcc_topdir 626 libgcc_topdir
624 target_alias 627 target_alias
625 host_alias 628 host_alias
626 build_alias 629 build_alias
664 enable_option_checking 667 enable_option_checking
665 with_target_subdir 668 with_target_subdir
666 with_cross_host 669 with_cross_host
667 with_ld 670 with_ld
668 enable_shared 671 enable_shared
672 enable_gcov
669 enable_vtable_verify 673 enable_vtable_verify
670 with_aix_soname 674 with_aix_soname
671 enable_version_specific_runtime_libs 675 enable_version_specific_runtime_libs
672 with_slibdir 676 with_slibdir
673 enable_maintainer_mode 677 enable_maintainer_mode
674 with_build_libsubdir 678 with_build_libsubdir
675 enable_largefile 679 enable_largefile
676 enable_decimal_float 680 enable_decimal_float
677 with_system_libunwind 681 with_system_libunwind
682 enable_cet
678 enable_explicit_exception_frame_registration 683 enable_explicit_exception_frame_registration
679 with_glibc_version 684 with_glibc_version
680 enable_tls 685 enable_tls
681 with_gcc_major_version_only 686 with_gcc_major_version_only
682 ' 687 '
1302 Optional Features: 1307 Optional Features:
1303 --disable-option-checking ignore unrecognized --enable/--with options 1308 --disable-option-checking ignore unrecognized --enable/--with options
1304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1309 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1310 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1306 --disable-shared don't provide a shared libgcc 1311 --disable-shared don't provide a shared libgcc
1312 --disable-gcov don't provide libgcov and related host tools
1307 --enable-vtable-verify Enable vtable verification feature 1313 --enable-vtable-verify Enable vtable verification feature
1308 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory 1314 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1309 --enable-maintainer-mode 1315 --enable-maintainer-mode
1310 enable make rules and dependencies not useful (and 1316 enable make rules and dependencies not useful (and
1311 sometimes confusing) to the casual installer 1317 sometimes confusing) to the casual installer
1312 --disable-largefile omit support for large files 1318 --disable-largefile omit support for large files
1313 --enable-decimal-float={no,yes,bid,dpd} 1319 --enable-decimal-float={no,yes,bid,dpd}
1314 enable decimal float extension to C. Selecting 'bid' 1320 enable decimal float extension to C. Selecting 'bid'
1315 or 'dpd' choses which decimal floating point format 1321 or 'dpd' choses which decimal floating point format
1316 to use 1322 to use
1323 --enable-cet enable Intel CET in target libraries [default=no]
1317 --enable-explicit-exception-frame-registration 1324 --enable-explicit-exception-frame-registration
1318 register exception tables explicitly at module 1325 register exception tables explicitly at module
1319 start, for use e.g. for compatibility with 1326 start, for use e.g. for compatibility with
1320 installations without PT_GNU_EH_FRAME support 1327 installations without PT_GNU_EH_FRAME support
1321 --enable-tls Use thread-local storage [default=yes] 1328 --enable-tls Use thread-local storage [default=yes]
2194 enable_shared=yes 2201 enable_shared=yes
2195 fi 2202 fi
2196 2203
2197 2204
2198 2205
2206 # Check whether --enable-gcov was given.
2207 if test "${enable_gcov+set}" = set; then :
2208 enableval=$enable_gcov;
2209 else
2210 enable_gcov=yes
2211 fi
2212
2213
2214
2199 # Check whether --enable-vtable-verify was given. 2215 # Check whether --enable-vtable-verify was given.
2200 if test "${enable_vtable_verify+set}" = set; then : 2216 if test "${enable_vtable_verify+set}" = set; then :
2201 enableval=$enable_vtable_verify; case "$enableval" in 2217 enableval=$enable_vtable_verify; case "$enableval" in
2202 yes) enable_vtable_verify=yes ;; 2218 yes) enable_vtable_verify=yes ;;
2203 no) enable_vtable_verify=no ;; 2219 no) enable_vtable_verify=no ;;
4642 4658
4643 else 4659 else
4644 4660
4645 case $host in 4661 case $host in
4646 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ 4662 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4647 i?86*-*-elfiamcu | i?86*-*-gnu* | \ 4663 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
4648 i?86*-*-mingw* | x86_64*-*-mingw* | \ 4664 i?86*-*-mingw* | x86_64*-*-mingw* | \
4649 i?86*-*-cygwin* | x86_64*-*-cygwin*) 4665 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4650 enable_decimal_float=yes 4666 enable_decimal_float=yes
4651 ;; 4667 ;;
4652 *) 4668 *)
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 fi 4788 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4774 $as_echo "$ac_cv_sjlj_exceptions" >&6; } 4790 $as_echo "$ac_cv_sjlj_exceptions" >&6; }
4775 4791
4792 # Check whether --enable-cet was given.
4793 if test "${enable_cet+set}" = set; then :
4794 enableval=$enable_cet;
4795 case "$enableval" in
4796 yes|no|auto) ;;
4797 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4798 esac
4799
4800 else
4801 enable_cet=no
4802 fi
4803
4804
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4806 $as_echo_n "checking for CET support... " >&6; }
4807
4808 case "$host" in
4809 i[34567]86-*-linux* | x86_64-*-linux*)
4810 case "$enable_cet" in
4811 auto)
4812 # Check if target supports multi-byte NOPs
4813 # and if assembler supports CET insn.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816
4817 int
4818 main ()
4819 {
4820
4821 #if !defined(__SSE2__)
4822 #error target does not support multi-byte NOPs
4823 #else
4824 asm ("setssbsy");
4825 #endif
4826
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_c_try_compile "$LINENO"; then :
4832 enable_cet=yes
4833 else
4834 enable_cet=no
4835 fi
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 ;;
4838 yes)
4839 # Check if assembler supports CET.
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4842
4843 int
4844 main ()
4845 {
4846 asm ("setssbsy");
4847 ;
4848 return 0;
4849 }
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852
4853 else
4854 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
4855 fi
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ;;
4858 esac
4859 ;;
4860 *)
4861 enable_cet=no
4862 ;;
4863 esac
4864 if test x$enable_cet = xyes; then
4865 CET_FLAGS="-fcf-protection -mshstk"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4867 $as_echo "yes" >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4871 fi
4872
4873
4874
4776 # Check whether --enable-explicit-exception-frame-registration was given. 4875 # Check whether --enable-explicit-exception-frame-registration was given.
4777 if test "${enable_explicit_exception_frame_registration+set}" = set; then : 4876 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4778 enableval=$enable_explicit_exception_frame_registration; 4877 enableval=$enable_explicit_exception_frame_registration;
4779 force_explicit_eh_registry= 4878 force_explicit_eh_registry=
4780 if test "$enable_explicit_exception_frame_registration" = yes; then 4879 if test "$enable_explicit_exception_frame_registration" = yes; then
4873 $as_echo "$libgcc_cv_mips_hard_float" >&6; } 4972 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
4874 esac 4973 esac
4875 4974
4876 case ${host} in 4975 case ${host} in
4877 *-*-solaris2*) 4976 *-*-solaris2*)
4878 # Check for system-provided CRTs on Solaris 11.x and Solaris 12. 4977 # Check for system-provided CRTs on Solaris 11.4.
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
4880 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; } 4979 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
4881 if test "${libgcc_cv_solaris_crts+set}" = set; then : 4980 if test "${libgcc_cv_solaris_crts+set}" = set; then :
4882 $as_echo_n "(cached) " >&6 4981 $as_echo_n "(cached) " >&6
4883 else 4982 else
5076 tmake_file="${tmake_file} i386/t-crtstuff" 5175 tmake_file="${tmake_file} i386/t-crtstuff"
5077 fi 5176 fi
5078 ;; 5177 ;;
5079 esac 5178 esac
5080 5179
5180 # Check if Solaris linker support v2 linker mapfile syntax.
5181 # Link with -nostartfiles -nodefaultlibs since neither are present while
5182 # building libgcc.
5183 case ${host} in
5184 *-*-solaris2*)
5185 solaris_ld_v2_maps=no
5186 echo 'int main(void) {return 0;}' > conftest.c
5187 echo '$mapfile_version 2' > conftest.map
5188 if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5'
5189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5193 test $ac_status = 0; }; }; then
5194 solaris_ld_v2_maps=yes
5195 fi
5196 ;;
5197 esac
5198
5199
5081 # Check if xtensa target is configured for windowed ABI and thus needs to use 5200 # Check if xtensa target is configured for windowed ABI and thus needs to use
5082 # custom unwind code. 5201 # custom unwind code.
5083 # This is after config.host so we can augment tmake_file. 5202 # This is after config.host so we can augment tmake_file.
5084 case ${host} in 5203 case ${host} in
5085 xtensa*-*) 5204 xtensa*-*)
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
5126 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; } 5245 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
5127 5246
5128 if test $libgcc_cv_hidden_visibility_attribute = yes; then 5247 if test $libgcc_cv_hidden_visibility_attribute = yes; then
5129 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS' 5248 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
5249
5250 cat >>confdefs.h <<_ACEOF
5251 #define AS_HIDDEN_DIRECTIVE $asm_hidden_op
5252 _ACEOF
5253
5130 else 5254 else
5131 vis_hide= 5255 vis_hide=
5132 fi 5256 fi
5133 5257
5258
5259 # Check for .cfi_sections .debug_frame support.
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5
5261 $as_echo_n "checking for .cfi_sections .debug_frame... " >&6; }
5262 if test "${libgcc_cv_cfi_sections_directive+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265
5266 echo 'int foo (int, char *);' > conftest.c
5267 echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c
5268 libgcc_cv_cfi_sections_directive=no
5269 if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5'
5270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5274 test $ac_status = 0; }; }; then
5275 if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then
5276 libgcc_cv_cfi_sections_directive=yes
5277 fi
5278 fi
5279 rm -f conftest.*
5280
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5
5283 $as_echo "$libgcc_cv_cfi_sections_directive" >&6; }
5284 if test $libgcc_cv_cfi_sections_directive = yes; then
5285
5286 $as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h
5287
5288 fi
5134 5289
5135 # See if we have thread-local storage. We can only test assembler 5290 # See if we have thread-local storage. We can only test assembler
5136 # since link-time and run-time tests require the newly built 5291 # since link-time and run-time tests require the newly built
5137 # gcc, which can't be used to build executable due to that libgcc 5292 # gcc, which can't be used to build executable due to that libgcc
5138 # is yet to be built here. 5293 # is yet to be built here.
5338 get_gcc_base_ver="cat" 5493 get_gcc_base_ver="cat"
5339 5494
5340 # Check whether --with-gcc-major-version-only was given. 5495 # Check whether --with-gcc-major-version-only was given.
5341 if test "${with_gcc_major_version_only+set}" = set; then : 5496 if test "${with_gcc_major_version_only+set}" = set; then :
5342 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 5497 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5343 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'" 5498 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5344 fi 5499 fi
5345 5500
5346 fi 5501 fi
5347 5502
5348 5503