diff --git a/dkarm-eabi/patches/newlib-2.1.0.patch b/dkarm-eabi/patches/newlib-2.1.0.patch index 09a0a3a..1bdc05d 100644 --- a/dkarm-eabi/patches/newlib-2.1.0.patch +++ b/dkarm-eabi/patches/newlib-2.1.0.patch @@ -1,6 +1,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/configure --- newlib-2.1.0/libgloss/arm/configure 2013-09-20 15:23:41.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/arm/configure 2014-11-28 23:15:48.990756000 +0000 ++++ newlib-2.1.0-arm/libgloss/arm/configure 2014-12-06 04:08:48.482756000 +0000 @@ -1,29 +1,33 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. @@ -16,9 +16,10 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -+## -------------------- ## - ## M4sh Initialization. ## +-## M4sh Initialization. ## -## --------------------- ## ++## -------------------- ## ++## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible @@ -113,7 +114,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then -+ PATH_SEPARATOR=: ++ PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' @@ -121,7 +122,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -@@ -63,12 +84,11 @@ +@@ -63,20 +84,19 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) @@ -136,11 +137,12 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH -@@ -76,7 +96,7 @@ + do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS @@ -357,7 +359,8 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - : else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do @@ -369,16 +372,29 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co /*) for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" -- done;; -- esac --done --IFS=$as_save_IFS -- -- -- for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. ++ # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && ++ if { test -f "$as_shell" || test -f "$as_shell.exe"; } && ++ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : ++ CONFIG_SHELL=$as_shell as_have_required=yes ++ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : ++ break 2 ++fi ++fi + done;; + esac ++ as_found=false + done ++$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && ++ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : ++ CONFIG_SHELL=$SHELL as_have_required=yes ++fi; } + IFS=$as_save_IFS + + +- for as_shell in $as_candidate_shells $SHELL; do +- # Try only shells that exist, to save several forks. +- if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh @@ -392,11 +408,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - *posix*) set -o posix ;; -esac - -+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : -+ CONFIG_SHELL=$as_shell as_have_required=yes -+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : -+ break 2 - fi +-fi - - -: @@ -443,27 +455,30 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -else - exitcode=1 - echo as_func_success failed. - fi -+ done;; -+ esac -+ as_found=false -+done -+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && -+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : -+ CONFIG_SHELL=$SHELL as_have_required=yes -+fi; } -+IFS=$as_save_IFS - +-fi +- -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - +- -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. +-fi +- +-if as_func_ret_failure; then +- exitcode=1 +- echo as_func_ret_failure succeeded. +-fi +- +-if ( set x; as_func_ret_success y && test x = "$1" ); then +- : +-else +- exitcode=1 +- echo positional parameters were not saved. + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a @@ -501,23 +516,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + exit 1 fi - --if as_func_ret_failure; then -- exitcode=1 -- echo as_func_ret_failure succeeded. - fi -- --if ( set x; as_func_ret_success y && test x = "$1" ); then -- : --else -- exitcode=1 -- echo positional parameters were not saved. - fi -+SHELL=${CONFIG_SHELL-/bin/sh} -+export SHELL -+# Unset more variables known to interfere with behavior of common tools. -+CLICOLOR_FORCE= GREP_OPTIONS= -+unset CLICOLOR_FORCE GREP_OPTIONS - -test $exitcode = 0) || { (exit 1); exit 1; } - -( @@ -529,6 +527,23 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -_ASEOF -}; then - break + fi +- + fi ++SHELL=${CONFIG_SHELL-/bin/sh} ++export SHELL ++# Unset more variables known to interfere with behavior of common tools. ++CLICOLOR_FORCE= GREP_OPTIONS= ++unset CLICOLOR_FORCE GREP_OPTIONS + +- done +- +- if test "x$CONFIG_SHELL" != x; then +- for as_var in BASH_ENV ENV +- do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +- done +- export CONFIG_SHELL +- exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi +## --------------------- ## +## M4sh Shell Functions. ## @@ -542,7 +557,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co +} +as_unset=as_fn_unset --fi +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. @@ -551,7 +565,13 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + return $1 +} # as_fn_set_status -- done +- if test $as_have_required = no; then +- echo This script requires a shell more modern than all the +- echo shells that I found on your system. Please install a +- echo modern shell, or manually run the script under such a +- echo shell if you do have one. +- { (exit 1); exit 1; } +-fi +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. @@ -568,9 +588,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co +as_fn_mkdir_p () +{ -- if test "x$CONFIG_SHELL" != x; then -- for as_var in BASH_ENV ENV -- do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac @@ -606,20 +623,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + } + s/.*/./; q'` + test -d "$as_dir" && break - done -- export CONFIG_SHELL -- exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} --fi -- -- -- if test $as_have_required = no; then -- echo This script requires a shell more modern than all the -- echo shells that I found on your system. Please install a -- echo modern shell, or manually run the script under such a -- echo shell if you do have one. -- { (exit 1); exit 1; } --fi -- ++ done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" @@ -826,10 +830,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - as_dirname=false -fi - - ECHO_C= ECHO_N= ECHO_T= +-ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in -+case `echo -n x` in #((((( - -n*) +--n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; @@ -1009,6 +1012,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -objtype -host_makefile_frag_path -subdirs ++ECHO_C= ECHO_N= ECHO_T= ++case `echo -n x` in #((((( ++-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; @@ -1028,15 +1034,15 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s='ln -s' -+ # ... but there are two gotchas: -+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. -+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ++ as_ln_s='ln -s' ++ # ... but there are two gotchas: ++ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ++ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. -+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ++ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s=ln ++ as_ln_s=ln + else + as_ln_s='cp -pR' + fi @@ -1188,16 +1194,18 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null -@@ -719,7 +732,8 @@ +@@ -719,8 +732,9 @@ fi case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; +- *) ac_optarg=yes ;; + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; - *) ac_optarg=yes ;; ++ *) ac_optarg=yes ;; esac + # Accept the important Cygnus configure options, so we can diagnose typos. @@ -762,13 +776,20 @@ datarootdir=$ac_optarg ;; @@ -1445,6 +1453,63 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files +@@ -1183,9 +1232,9 @@ + + Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX +- [$ac_default_prefix] ++ [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX +- [PREFIX] ++ [PREFIX] + + By default, \`make install' will install all the files in + \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +@@ -1195,25 +1244,25 @@ + For better control, use the options below. + + Fine tuning of the installation directories: +- --bindir=DIR user executables [EPREFIX/bin] +- --sbindir=DIR system admin executables [EPREFIX/sbin] +- --libexecdir=DIR program executables [EPREFIX/libexec] +- --sysconfdir=DIR read-only single-machine data [PREFIX/etc] +- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] +- --localstatedir=DIR modifiable single-machine data [PREFIX/var] +- --libdir=DIR object code libraries [EPREFIX/lib] +- --includedir=DIR C header files [PREFIX/include] +- --oldincludedir=DIR C header files for non-gcc [/usr/include] +- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] +- --datadir=DIR read-only architecture-independent data [DATAROOTDIR] +- --infodir=DIR info documentation [DATAROOTDIR/info] +- --localedir=DIR locale-dependent data [DATAROOTDIR/locale] +- --mandir=DIR man documentation [DATAROOTDIR/man] +- --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] +- --htmldir=DIR html documentation [DOCDIR] +- --dvidir=DIR dvi documentation [DOCDIR] +- --pdfdir=DIR pdf documentation [DOCDIR] +- --psdir=DIR ps documentation [DOCDIR] ++ --bindir=DIR user executables [EPREFIX/bin] ++ --sbindir=DIR system admin executables [EPREFIX/sbin] ++ --libexecdir=DIR program executables [EPREFIX/libexec] ++ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ++ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ++ --localstatedir=DIR modifiable single-machine data [PREFIX/var] ++ --libdir=DIR object code libraries [EPREFIX/lib] ++ --includedir=DIR C header files [PREFIX/include] ++ --oldincludedir=DIR C header files for non-gcc [/usr/include] ++ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] ++ --datadir=DIR read-only architecture-independent data [DATAROOTDIR] ++ --infodir=DIR info documentation [DATAROOTDIR/info] ++ --localedir=DIR locale-dependent data [DATAROOTDIR/locale] ++ --mandir=DIR man documentation [DATAROOTDIR/man] ++ --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] ++ --htmldir=DIR html documentation [DOCDIR] ++ --dvidir=DIR dvi documentation [DOCDIR] ++ --pdfdir=DIR pdf documentation [DOCDIR] ++ --psdir=DIR ps documentation [DOCDIR] + _ACEOF + + cat <<\_ACEOF @@ -1235,6 +1284,7 @@ cat <<\_ACEOF @@ -1715,7 +1780,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF -@@ -1556,42 +1645,58 @@ +@@ -1556,42 +1641,58 @@ #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF @@ -1792,7 +1857,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co >$cache_file fi -@@ -1605,60 +1710,56 @@ +@@ -1605,60 +1706,56 @@ eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) @@ -1816,13 +1881,14 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} +- ac_cache_corrupted=: + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: ++ ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} @@ -1883,7 +1949,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co ac_ext=c ac_cpp='$CPP $CPPFLAGS' -@@ -1669,13 +1770,11 @@ +@@ -1669,13 +1766,11 @@ # Check whether --enable-newlib-supplied-syscalls was given. @@ -1899,7 +1965,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co esac else newlib_may_supply_syscalls=yes -@@ -1718,9 +1817,7 @@ +@@ -1718,9 +1813,7 @@ fi done if test -z "$ac_aux_dir"; then @@ -1910,7 +1976,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi # These three variables are undocumented and unsupported, -@@ -1735,35 +1832,27 @@ +@@ -1735,35 +1828,27 @@ # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || @@ -1957,7 +2023,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' -@@ -1779,28 +1868,24 @@ +@@ -1779,28 +1864,24 @@ case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac @@ -1994,7 +2060,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' -@@ -1816,28 +1901,24 @@ +@@ -1816,28 +1897,24 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac @@ -2031,7 +2097,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' -@@ -1864,13 +1945,10 @@ +@@ -1864,13 +1942,10 @@ # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" @@ -2048,7 +2114,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # Find a good install program. We prefer a C program (faster), -@@ -1886,11 +1964,12 @@ +@@ -1886,22 +1961,23 @@ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. @@ -2065,12 +2131,13 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH -@@ -1898,10 +1977,10 @@ + do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. +- # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ ++ # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ @@ -2079,7 +2146,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. -@@ -1909,7 +1988,7 @@ +@@ -1909,7 +1985,7 @@ # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do @@ -2088,10 +2155,12 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. -@@ -1919,17 +1998,29 @@ +@@ -1919,17 +1995,29 @@ # program-specific install script used by HP pwplus--don't use. : else +- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" +- break 3 + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two @@ -2101,11 +2170,11 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 ++ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ++ break 3 ++ fi fi fi -+ fi done done ;; @@ -2119,7 +2188,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi if test "${ac_cv_path_install+set}" = set; then -@@ -1942,8 +2033,8 @@ +@@ -1942,8 +2030,8 @@ INSTALL=$ac_install_sh fi fi @@ -2130,7 +2199,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. -@@ -1975,8 +2066,8 @@ +@@ -1975,8 +2063,8 @@ .PHONY: am__doit END # If we don't find an include directive, just comment out the code. @@ -2141,7 +2210,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co am__include="#" am__quote= _am_result=none -@@ -2003,12 +2094,12 @@ +@@ -2003,12 +2091,12 @@ fi @@ -2157,7 +2226,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co enableval=$enable_dependency_tracking; fi -@@ -2030,10 +2121,10 @@ +@@ -2030,10 +2118,10 @@ # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 @@ -2172,11 +2241,13 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. -@@ -2044,34 +2135,34 @@ +@@ -2043,35 +2131,35 @@ + do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do +- for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 @@ -2218,7 +2289,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up -@@ -2158,8 +2249,8 @@ +@@ -2158,8 +2246,8 @@ fi fi @@ -2229,7 +2300,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type -@@ -2178,10 +2269,10 @@ +@@ -2178,10 +2266,10 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 @@ -2244,11 +2315,13 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. -@@ -2193,17 +2284,17 @@ +@@ -2192,18 +2280,18 @@ + do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do +- for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes @@ -2265,7 +2338,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co IFS=$as_save_IFS if test $ac_prog_rejected = yes; then -@@ -2222,23 +2313,21 @@ +@@ -2222,23 +2310,21 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -2298,7 +2371,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else cat > conftest.c <&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" +- CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF ++ CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -@@ -2328,35 +2390,12 @@ +@@ -2328,35 +2387,12 @@ return 0; } _ACEOF @@ -2412,8 +2486,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_compile "$LINENO"; then : +- ac_c_werror_flag=$ac_save_c_werror_flag +else - ac_c_werror_flag=$ac_save_c_werror_flag ++ ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ @@ -2424,7 +2499,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co /* end confdefs.h. */ int -@@ -2367,37 +2406,13 @@ +@@ -2367,37 +2403,13 @@ return 0; } _ACEOF @@ -2463,7 +2538,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi -@@ -2401,8 +2416,8 @@ +@@ -2401,8 +2413,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi @@ -2474,7 +2549,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then -@@ -2439,10 +2454,10 @@ +@@ -2439,10 +2451,10 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 @@ -2489,11 +2564,13 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -@@ -2453,24 +2468,24 @@ +@@ -2452,25 +2464,25 @@ + do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do +- for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 @@ -2521,7 +2598,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -@@ -2479,10 +2494,10 @@ +@@ -2479,10 +2491,10 @@ ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 @@ -2536,11 +2613,13 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -@@ -2493,24 +2508,24 @@ +@@ -2492,25 +2504,25 @@ + do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do +- for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 @@ -2568,7 +2647,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi if test "x$ac_ct_RANLIB" = x; then -@@ -2518,12 +2533,8 @@ +@@ -2518,12 +2530,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) @@ -2583,7 +2662,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB -@@ -2551,7 +2562,7 @@ +@@ -2551,7 +2559,7 @@ @@ -2592,7 +2671,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co host_makefile_frag_path=$host_makefile_frag -@@ -2594,12 +2605,13 @@ +@@ -2594,12 +2602,13 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( @@ -2609,7 +2688,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co esac ;; esac done -@@ -2607,8 +2619,8 @@ +@@ -2607,8 +2616,8 @@ (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) @@ -2620,7 +2699,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" -@@ -2630,13 +2642,24 @@ +@@ -2630,13 +2639,24 @@ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then @@ -2651,7 +2730,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi fi rm -f confcache -@@ -2653,6 +2676,12 @@ +@@ -2653,6 +2673,12 @@ # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' @@ -2664,7 +2743,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -@@ -2679,14 +2708,15 @@ +@@ -2679,14 +2705,15 @@ ac_libobjs= ac_ltlibobjs= @@ -2683,7 +2762,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co done LIBOBJS=$ac_libobjs -@@ -2694,26 +2724,22 @@ +@@ -2694,26 +2721,22 @@ if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then @@ -2720,22 +2799,25 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. -@@ -2723,28 +2749,31 @@ +@@ -2722,29 +2745,32 @@ + debug=false ac_cs_recheck=false - ac_cs_silent=false +-ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF ++ac_cs_silent=false -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## +-## M4sh Initialization. ## +-## --------------------- ## +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## - ## M4sh Initialization. ## --## --------------------- ## ++## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible @@ -2762,7 +2844,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -@@ -2748,34 +2777,51 @@ +@@ -2748,34 +2774,51 @@ fi @@ -2830,7 +2912,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then -+ PATH_SEPARATOR=: ++ PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' @@ -2838,7 +2920,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -@@ -2784,12 +2830,11 @@ +@@ -2784,20 +2827,19 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) @@ -2853,16 +2935,17 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH -@@ -2797,7 +2842,7 @@ + do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; -@@ -2808,32 +2853,111 @@ +@@ -2808,32 +2850,111 @@ as_myself=$0 fi if test ! -f "$as_myself"; then @@ -2991,7 +3074,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr -@@ -2847,13 +2971,17 @@ +@@ -2847,13 +2968,17 @@ as_basename=false fi @@ -3011,7 +3094,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q -@@ -2868,131 +2996,118 @@ +@@ -2868,131 +2993,118 @@ } s/.*/./; q'` @@ -3108,20 +3191,26 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then -+if (echo >conf$$.file) 2>/dev/null; then -+ if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. +- as_ln_s='ln -s' +- # ... but there are two gotchas: +- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. +- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. -+ # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then +- as_ln_s=ln ++if (echo >conf$$.file) 2>/dev/null; then ++ if ln -s conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s='ln -s' ++ # ... but there are two gotchas: ++ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ++ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ++ # In both cases, we have to default to `cp -pR'. ++ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln ++ as_ln_s=ln + else + as_ln_s='cp -pR' + fi @@ -3223,7 +3312,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -@@ -3002,13 +3117,19 @@ +@@ -3002,13 +3114,19 @@ exec 6>&1 @@ -3245,7 +3334,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS -@@ -3021,23 +3142,32 @@ +@@ -3021,27 +3139,36 @@ _ACEOF @@ -3283,8 +3372,14 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] -@@ -3049,36 +3179,42 @@ +- --file=FILE[:TEMPLATE] +- instantiate the configuration file FILE ++ --file=FILE[:TEMPLATE] ++ instantiate the configuration file FILE + + Configuration files: + $config_files +@@ -3049,36 +3176,42 @@ Configuration commands: $config_commands @@ -3336,7 +3431,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co *) ac_option=$1 ac_optarg=$2 -@@ -3091,25 +3227,30 @@ +@@ -3091,25 +3224,30 @@ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) @@ -3374,7 +3469,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co ac_need_defaults=false ;; esac -@@ -3124,27 +3265,29 @@ +@@ -3124,27 +3262,29 @@ fi _ACEOF @@ -3411,7 +3506,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # # INIT-COMMANDS # -@@ -3166,7 +3309,7 @@ +@@ -3166,7 +3306,7 @@ _ACEOF @@ -3420,7 +3515,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # Handling of arguments. for ac_config_target in $ac_config_targets -@@ -3176,9 +3319,7 @@ +@@ -3176,9 +3316,7 @@ "cpu-init/Makefile") CONFIG_FILES="$CONFIG_FILES cpu-init/Makefile" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; @@ -3431,7 +3526,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co esac done -@@ -3200,196 +3341,228 @@ +@@ -3200,196 +3338,228 @@ # after its creation but before its name has been assigned to `$tmp'. $debug || { @@ -3803,7 +3898,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac -@@ -3408,7 +3581,7 @@ +@@ -3408,7 +3578,7 @@ for ac_f do case $ac_f in @@ -3812,7 +3907,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. -@@ -3417,26 +3590,34 @@ +@@ -3417,26 +3587,34 @@ [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || @@ -3856,7 +3951,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co esac ;; esac -@@ -3446,42 +3627,7 @@ +@@ -3446,42 +3624,7 @@ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || @@ -3900,7 +3995,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q -@@ -3499,20 +3645,15 @@ +@@ -3499,20 +3642,15 @@ q } s/.*/./; q'` @@ -3924,7 +4019,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; -@@ -3552,12 +3693,12 @@ +@@ -3552,12 +3690,12 @@ esac _ACEOF @@ -3940,7 +4035,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co p q } -@@ -3565,14 +3706,14 @@ +@@ -3565,36 +3703,37 @@ /@docdir@/p /@infodir@/p /@localedir@/p @@ -3960,7 +4055,14 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g -@@ -3586,15 +3727,16 @@ + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g +- s&\\\${datarootdir}&$datarootdir&g' ;; ++ s&\\\${datarootdir}&$datarootdir&g' ;; + esac + _ACEOF + # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? @@ -3981,7 +4083,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t -@@ -3604,26 +3746,35 @@ +@@ -3604,26 +3743,35 @@ s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack @@ -4030,7 +4132,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co ;; esac -@@ -3644,7 +3795,7 @@ +@@ -3644,7 +3792,7 @@ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || @@ -4039,7 +4141,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q -@@ -3688,42 +3839,7 @@ +@@ -3688,42 +3836,7 @@ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || @@ -4083,7 +4185,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q -@@ -3741,12 +3857,7 @@ +@@ -3741,12 +3854,7 @@ q } s/.*/./; q'` @@ -4097,7 +4199,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done -@@ -3759,11 +3870,13 @@ +@@ -3759,11 +3867,13 @@ done # for ac_tag @@ -4113,7 +4215,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. -@@ -3783,7 +3896,11 @@ +@@ -3783,7 +3893,11 @@ exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. @@ -10201,6 +10303,32 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/getpid.c newlib-2.1.0-arm/libgloss/ + return -1; +} + +diff -NBaur newlib-2.1.0/libgloss/libsysbase/getreent.c newlib-2.1.0-arm/libgloss/libsysbase/getreent.c +--- newlib-2.1.0/libgloss/libsysbase/getreent.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-2.1.0-arm/libgloss/libsysbase/getreent.c 2014-12-06 03:10:40.042756000 +0000 +@@ -0,0 +1,22 @@ ++ ++/* default reentrant pointer when multithread enabled */ ++ ++#include <_ansi.h> ++#include ++#include ++ ++#ifdef __getreent ++#undef __getreent ++#endif ++ ++struct _reent * ++_DEFUN_VOID(__getreent) ++{ ++ if ( __syscalls.__getreent ) { ++ return __syscalls.__getreent(); ++ } else { ++ return _impure_ptr; ++ } ++} ++ ++ diff -NBaur newlib-2.1.0/libgloss/libsysbase/gettod.c newlib-2.1.0-arm/libgloss/libsysbase/gettod.c --- newlib-2.1.0/libgloss/libsysbase/gettod.c 1970-01-01 01:00:00.000000000 +0100 +++ newlib-2.1.0-arm/libgloss/libsysbase/gettod.c 2014-11-30 18:26:39.234756000 +0000 @@ -10589,7 +10717,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/lseek.c newlib-2.1.0-arm/libgloss/l +} diff -NBaur newlib-2.1.0/libgloss/libsysbase/Makefile.in newlib-2.1.0-arm/libgloss/libsysbase/Makefile.in --- newlib-2.1.0/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/Makefile.in 2014-11-28 23:15:49.002756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/Makefile.in 2014-12-06 02:56:33.934756000 +0000 @@ -0,0 +1,148 @@ +# Copyright (c) 1998 Cygnus Support +# @@ -10663,7 +10791,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/Makefile.in newlib-2.1.0-arm/libglo + unlink.o wait.o write.o _exit.o malloc_vars.o \ + chdir.o mkdir.o rename.o build_argv.o statvfs.o \ + flock.o syscall_support.o handle_manager.o truncate.o ftruncate.o dirent.o fsync.o \ -+ fchmod.o chmod.o ++ fchmod.o chmod.o getreent.o + +# Object files specific to particular targets. +EVALOBJS = ${OBJS} @@ -11060,8 +11188,8 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/statvfs.c newlib-2.1.0-arm/libgloss +} diff -NBaur newlib-2.1.0/libgloss/libsysbase/syscall_support.c newlib-2.1.0-arm/libgloss/libsysbase/syscall_support.c --- newlib-2.1.0/libgloss/libsysbase/syscall_support.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/syscall_support.c 2014-11-30 18:26:39.242756000 +0000 -@@ -0,0 +1,50 @@ ++++ newlib-2.1.0-arm/libgloss/libsysbase/syscall_support.c 2014-12-06 02:53:28.898756000 +0000 +@@ -0,0 +1,51 @@ +#include + +//--------------------------------------------------------------------------------- @@ -11074,6 +11202,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/syscall_support.c newlib-2.1.0-arm/ + NULL, // lock_close + NULL, // lock_release + NULL, // lock_acquire ++ NULL, // __getreent +}; + +int __libc_lock_init(int *lock,int recursive) { @@ -11371,8 +11500,8 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/write.c newlib-2.1.0-arm/libgloss/l +} diff -NBaur newlib-2.1.0/newlib/configure.host newlib-2.1.0-arm/newlib/configure.host --- newlib-2.1.0/newlib/configure.host 2013-12-20 10:27:49.000000000 +0000 -+++ newlib-2.1.0-arm/newlib/configure.host 2014-11-28 23:15:49.002756000 +0000 -@@ -589,6 +589,14 @@ ++++ newlib-2.1.0-arm/newlib/configure.host 2014-12-05 22:43:44.014756000 +0000 +@@ -589,6 +589,13 @@ arc-*-*) syscall_dir=syscalls ;; @@ -11382,7 +11511,6 @@ diff -NBaur newlib-2.1.0/newlib/configure.host newlib-2.1.0-arm/newlib/configure + default_newlib_io_pos_args="yes" + newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -D__DEFAULT_UTF8__" + newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections" -+ syscall_dir=syscalls + ;; arm*-*-pe) syscall_dir=syscalls @@ -11822,6 +11950,19 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/pthread.h newlib-2.1.0-arm/newlib/l - -#endif -/* end of include file */ +diff -NBaur newlib-2.1.0/newlib/libc/include/sys/config.h newlib-2.1.0-arm/newlib/libc/include/sys/config.h +--- newlib-2.1.0/newlib/libc/include/sys/config.h 2013-10-23 11:04:42.000000000 +0100 ++++ newlib-2.1.0-arm/newlib/libc/include/sys/config.h 2014-12-06 02:45:02.150756000 +0000 +@@ -4,6 +4,9 @@ + #include /* floating point macros */ + #include /* POSIX defs */ + ++/* we want the reentrancy structure to be returned by a function */ ++#define __DYNAMIC_REENT__ ++ + #ifdef __aarch64__ + #define MALLOC_ALIGNMENT 16 + #endif diff -NBaur newlib-2.1.0/newlib/libc/include/sys/dirent.h newlib-2.1.0-arm/newlib/libc/include/sys/dirent.h --- newlib-2.1.0/newlib/libc/include/sys/dirent.h 2005-10-04 21:47:39.000000000 +0100 +++ newlib-2.1.0-arm/newlib/libc/include/sys/dirent.h 2014-11-28 23:15:49.006756000 +0000 @@ -11879,8 +12020,8 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/dirent.h newlib-2.1.0-arm/newli \ No newline at end of file diff -NBaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/newlib/libc/include/sys/iosupport.h --- newlib-2.1.0/newlib/libc/include/sys/iosupport.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/include/sys/iosupport.h 2014-11-30 18:26:39.218756000 +0000 -@@ -0,0 +1,93 @@ ++++ newlib-2.1.0-arm/newlib/libc/include/sys/iosupport.h 2014-12-06 02:51:35.130756000 +0000 +@@ -0,0 +1,94 @@ +//--------------------------------------------------------------------------------- +#ifndef __iosupp_h__ +#define __iosupp_h__ @@ -11957,6 +12098,7 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/ne + int (*lock_close) (int *lock); + int (*lock_release) (int *lock); + int (*lock_acquire) (int *lock); ++ struct _reent *(*__getreent) (); +} __syscalls_t; + +extern __syscalls_t __syscalls; @@ -12101,8 +12243,8 @@ diff -NBaur newlib-2.1.0/newlib/libc/locale/locale.c newlib-2.1.0-arm/newlib/lib static char lc_ctype_charset[ENCODING_LEN + 1] = "ASCII"; diff -NBaur newlib-2.1.0/newlib/libc/machine/arm/sys/lock.h newlib-2.1.0-arm/newlib/libc/machine/arm/sys/lock.h --- newlib-2.1.0/newlib/libc/machine/arm/sys/lock.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/machine/arm/sys/lock.h 2014-11-28 23:15:49.010756000 +0000 -@@ -0,0 +1,58 @@ ++++ newlib-2.1.0-arm/newlib/libc/machine/arm/sys/lock.h 2014-12-06 03:31:29.422756000 +0000 +@@ -0,0 +1,82 @@ +#ifndef __SYS_LOCK_H__ +#define __SYS_LOCK_H__ + @@ -12115,8 +12257,32 @@ diff -NBaur newlib-2.1.0/newlib/libc/machine/arm/sys/lock.h newlib-2.1.0-arm/new +typedef int _LOCK_T; +typedef int _LOCK_RECURSIVE_T; + -+#define __LOCK_INIT(CLASS,NAME) CLASS _LOCK_T NAME = 0 -+#define __LOCK_INIT_RECURSIVE(CLASS,NAME) CLASS _LOCK_RECURSIVE_T NAME = 0 ++#define __INIT_PRIORITY__ 10 ++#define __CLOSE_PRIORITY__ 10 ++ ++#define __LOCK_INIT(CLASS,NAME) \ ++CLASS _LOCK_T NAME = 0; \ ++__attribute__((constructor(__INIT_PRIORITY__))) \ ++static void __init_##NAME() { \ ++ __libc_lock_init(&(NAME),0); \ ++} \ ++\ ++__attribute__((destructor(__CLOSE_PRIORITY__))) \ ++static void __close_##NAME() { \ ++ __libc_lock_close(&(NAME)); \ ++} \ ++ ++#define __LOCK_INIT_RECURSIVE(CLASS,NAME) \ ++CLASS _LOCK_T NAME = 0; \ ++__attribute__((constructor(__INIT_PRIORITY__))) \ ++static void __init_##NAME() { \ ++ __libc_lock_init(&(NAME),1); \ ++} \ ++\ ++__attribute__((destructor(__CLOSE_PRIORITY__))) \ ++static void __close_##NAME() { \ ++ __libc_lock_close(&(NAME)); \ ++} \ + +#define __lock_init(NAME) \ + __libc_lock_init(&(NAME),0) @@ -12204,6 +12370,20 @@ diff -NBaur newlib-2.1.0/newlib/libc/misc/init.c newlib-2.1.0-arm/newlib/libc/mi +#error why am I not defined + #endif +diff -NBaur newlib-2.1.0/newlib/libc/reent/getreent.c newlib-2.1.0-arm/newlib/libc/reent/getreent.c +--- newlib-2.1.0/newlib/libc/reent/getreent.c 2007-09-07 01:45:55.000000000 +0100 ++++ newlib-2.1.0-arm/newlib/libc/reent/getreent.c 2014-12-06 02:46:49.018756000 +0000 +@@ -1,3 +1,4 @@ ++#if 0 + /* default reentrant pointer when multithread enabled */ + + #include <_ansi.h> +@@ -12,3 +13,5 @@ + { + return _impure_ptr; + } ++ ++#endif diff -NBaur newlib-2.1.0/newlib/libc/reent/gettimeofdayr.c newlib-2.1.0-arm/newlib/libc/reent/gettimeofdayr.c --- newlib-2.1.0/newlib/libc/reent/gettimeofdayr.c 2007-07-06 17:56:30.000000000 +0100 +++ newlib-2.1.0-arm/newlib/libc/reent/gettimeofdayr.c 2014-11-28 23:15:49.010756000 +0000