From: Roland McGrath Date: Fri, 6 Apr 2012 16:49:02 +0000 (+0000) Subject: binutils/ X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=58797674628264ab9d71631970f74000dc522e81;p=deliverable%2Fbinutils-gdb.git binutils/ 2012-04-06 Roland McGrath * configure.in (AC_CHECK_HEADERS): Add locale.h. * config.in: Regenerate. * configure: Regenerate. gas/ 2012-04-06 Roland McGrath * configure.in (AC_CHECK_HEADERS): Add locale.h. * config.in: Regenerate. * configure: Regenerate. gold/ 2012-04-06 Roland McGrath * configure.in (AC_CHECK_HEADERS): Add locale.h. * config.in: Regenerate. * configure: Regenerate. ld/ 2012-04-06 Roland McGrath * configure.in (AC_CHECK_HEADERS): Add locale.h. * config.in: Regenerate. * configure: Regenerate. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4b1321a831..85b2da300e 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2012-04-06 Roland McGrath + + * configure.in (AC_CHECK_HEADERS): Add locale.h. + * config.in: Regenerate. + * configure: Regenerate. + 2012-04-05 Nick Clifton * configure.in (AC_CHECK_FUNCS): Add setlocale. diff --git a/binutils/config.in b/binutils/config.in index 88e7b1b7a9..735c991409 100644 --- a/binutils/config.in +++ b/binutils/config.in @@ -91,6 +91,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H +/* Define to 1 if you have the header file. */ +#undef HAVE_LOCALE_H + /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H diff --git a/binutils/configure b/binutils/configure index a78e4ef09c..e98195598a 100755 --- a/binutils/configure +++ b/binutils/configure @@ -12436,7 +12436,7 @@ case "${host}" in esac -for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h +for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/binutils/configure.in b/binutils/configure.in index 3941a0b452..1aa43213cf 100644 --- a/binutils/configure.in +++ b/binutils/configure.in @@ -89,7 +89,7 @@ case "${host}" in esac AC_SUBST(DEMANGLER_NAME) -AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h) +AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h) AC_HEADER_SYS_WAIT AC_FUNC_ALLOCA AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale) diff --git a/gas/ChangeLog b/gas/ChangeLog index 2a7d051a12..168a9131ee 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2012-04-06 Roland McGrath + + * configure.in (AC_CHECK_HEADERS): Add locale.h. + * config.in: Regenerate. + * configure: Regenerate. + 2012-04-05 Nick Clifton * configure.in (AC_CHECK_FUNCS): Add setlocale. diff --git a/gas/config.in b/gas/config.in index 8bd5298dfd..4c63bd9a06 100644 --- a/gas/config.in +++ b/gas/config.in @@ -72,6 +72,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H +/* Define to 1 if you have the header file. */ +#undef HAVE_LOCALE_H + /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H @@ -81,15 +84,15 @@ /* Define to 1 if you have the `sbrk' function. */ #undef HAVE_SBRK +/* Define to 1 if you have the `setlocale' function. */ +#undef HAVE_SETLOCALE + /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H -/* Define to 1 if you have the `setlocale' function. */ -#undef HAVE_SETLOCALE - /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H diff --git a/gas/configure b/gas/configure index 148ce787f8..9f81627c12 100755 --- a/gas/configure +++ b/gas/configure @@ -13166,7 +13166,7 @@ fi -for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h time.h sys/stat.h +for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/gas/configure.in b/gas/configure.in index 90faf6626b..618095cce2 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -403,7 +403,7 @@ changequote([,])dnl case ${te_file} in vms) extra_objects="$extra_objects te-vms.o" ;; esac - + # From target name and format, produce a list of supported emulations. case ${generic_target}-${fmt} in @@ -633,7 +633,7 @@ AM_MAINTAINER_MODE AM_CONDITIONAL(GENINSRC_NEVER, false) AC_EXEEXT -AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h time.h sys/stat.h) +AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h) # Put this here so that autoconf's "cross-compiling" message doesn't confuse # people who are not cross-compiling but are compiling cross-assemblers. diff --git a/gold/ChangeLog b/gold/ChangeLog index cc006326e3..e68190b0bb 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2012-04-06 Roland McGrath + + * configure.in (AC_CHECK_HEADERS): Add locale.h. + * config.in: Regenerate. + * configure: Regenerate. + 2012-04-05 Nick Clifton * configure.ac (AC_CHECK_FUNCS): Add setlocale. @@ -913,7 +919,7 @@ (get_section_name): New function. (get_section_contents): New function. (update_section_order): New function. - (allow_section_ordering): New function. + (allow_section_ordering): New function. (Plugin::load): Add the new interfaces to the transfer vector. (Plugin_manager::load_plugins): New parameter. (Plugin_manager::all_symbols_read): New parameter. @@ -1979,7 +1985,7 @@ (Incremental_input_entry_reader::get_global_symbol_count): Rewrite. (Incremental_input_entry_reader::get_output_symbol_index): Adjust size of shared library info entry. - * layout.cc (Layout::finish_dynamic_section): Don't test for + * layout.cc (Layout::finish_dynamic_section): Don't test for incremental link when adding DT_NEEDED entries. * object.h (Object::Object): Initialize new data member. (Object::dynobj): New function. @@ -3335,7 +3341,7 @@ (Arm_exidx_merge_section::section_contents_): New data member. (Arm_input_section::Arm_input_section): Initialize original_contents_. (Arm_input_section::~Arm_input_section): De-allocate memory. - (Arm_input_section::original_contents_): New data member. + (Arm_input_section::original_contents_): New data member. (Arm_exidx_fixup::process_exidx_section): Pass EXIDX section contents in parameters instead of calling Object::section_contents without locking. diff --git a/gold/config.in b/gold/config.in index 68ea1f6570..dd6d827870 100644 --- a/gold/config.in +++ b/gold/config.in @@ -84,6 +84,9 @@ /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES +/* Define to 1 if you have the header file. */ +#undef HAVE_LOCALE_H + /* Define to 1 if you have the `mallinfo' function. */ #undef HAVE_MALLINFO @@ -108,6 +111,9 @@ /* Define to 1 if you have the `readv' function. */ #undef HAVE_READV +/* Define to 1 if you have the `setlocale' function. */ +#undef HAVE_SETLOCALE + /* Define if struct stat has a field st_mtim with timespec for mtime */ #undef HAVE_STAT_ST_MTIM @@ -117,9 +123,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H -/* Define to 1 if you have the `setlocale' function. */ -#undef HAVE_SETLOCALE - /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H diff --git a/gold/configure b/gold/configure index 04dd11e6dd..745e72760d 100755 --- a/gold/configure +++ b/gold/configure @@ -7336,6 +7336,18 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu +for ac_header in locale.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" +if test "x$ac_cv_header_locale_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LOCALE_H 1 +_ACEOF + +fi + +done + for ac_func in setlocale do : ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" diff --git a/gold/configure.ac b/gold/configure.ac index a6d1a59c0b..ee534094ec 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -45,7 +45,7 @@ dnl "installed_linker" is the installed gold linker name. default_ld= AC_ARG_ENABLE(ld, [[ --enable-ld[=ARG] build ld [ARG={default,yes,no}]]], -[case "${enableval}" in +[case "${enableval}" in default) default_ld=ld.bfd ;; @@ -536,6 +536,7 @@ fi AC_LANG_POP(C++) +AC_CHECK_HEADERS(locale.h) AC_CHECK_FUNCS(setlocale) AM_LC_MESSAGES diff --git a/ld/ChangeLog b/ld/ChangeLog index cd3e4ccef4..ebad05a7a7 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2012-04-06 Roland McGrath + + * configure.in (AC_CHECK_HEADERS): Add locale.h. + * config.in: Regenerate. + * configure: Regenerate. + 2012-04-05 Nick Clifton * configure.in (AC_CHECK_FUNCS): Add setlocale. diff --git a/ld/config.in b/ld/config.in index fc013fafbe..0a3219e4c0 100644 --- a/ld/config.in +++ b/ld/config.in @@ -73,6 +73,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H +/* Define to 1 if you have the header file. */ +#undef HAVE_LOCALE_H + /* Define to 1 if you have the `lseek' function. */ #undef HAVE_LSEEK @@ -94,15 +97,15 @@ /* Define to 1 if you have the `sbrk' function. */ #undef HAVE_SBRK +/* Define to 1 if you have the `setlocale' function. */ +#undef HAVE_SETLOCALE + /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H -/* Define to 1 if you have the `setlocale' function. */ -#undef HAVE_SETLOCALE - /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H @@ -169,8 +172,8 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* The size of `long', as computed by sizeof. */ -#undef SIZEOF_LONG +/* The size of `void *', as computed by sizeof. */ +#undef SIZEOF_VOID_P /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS diff --git a/ld/configure b/ld/configure index a41921c5c0..d0876051d0 100755 --- a/ld/configure +++ b/ld/configure @@ -16188,7 +16188,7 @@ do_compare="$gcc_cv_prog_cmp_skip" -for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h +for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/ld/configure.in b/ld/configure.in index 99648cffb7..b29923ccc8 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -162,7 +162,7 @@ AC_SUBST(HOSTING_CRT0) AC_SUBST(HOSTING_LIBS) AC_SUBST(NATIVE_LIB_DIRS) -AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h) +AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h) AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h) AC_CHECK_FUNCS(glob mkstemp realpath sbrk setlocale waitpid) AC_CHECK_FUNCS(open lseek close)