2013-04-10 Bin Cheng <bin.cheng@arm.com>
* acconfig.h (_FSEEK_OPTIMIZATION): Undef * newlib.hin (_FSEEK_OPTIMIZATION): Undef * configure.in (--disable-newlib-fseek-optimization): New option. * configure: Regenerated. * libc/stdio/fflush.c (__sflush_r): Use _FSEEK_OPTIMIZATION to control fseek optimization. * libc/stdio/fseeko.c (_fseeko_r): Ditto. * libc/stdio/makebuf.c (__smakebuf_r): Ditto. * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
This commit is contained in:
26
newlib/configure
vendored
26
newlib/configure
vendored
@@ -790,6 +790,7 @@ enable_newlib_iconv_external_ccs
|
||||
enable_newlib_atexit_dynamic_alloc
|
||||
enable_newlib_reent_small
|
||||
enable_newlib_fvwrite_in_streamio
|
||||
enable_newlib_fseek_optimization
|
||||
enable_multilib
|
||||
enable_target_optspace
|
||||
enable_malloc_debugging
|
||||
@@ -1454,6 +1455,7 @@ Optional Features:
|
||||
--disable-newlib-atexit-alloc disable dynamic allocation of atexit entries
|
||||
--enable-newlib-reent-small enable small reentrant struct support
|
||||
--disable-newlib-fvwrite-in-streamio disable iov in streamio
|
||||
--disable-newlib-fseek-optimization disable fseek optimization
|
||||
--enable-multilib build many library versions (default)
|
||||
--enable-target-optspace optimize for space
|
||||
--enable-malloc-debugging indicate malloc debugging requested
|
||||
@@ -2366,6 +2368,19 @@ else
|
||||
newlib_fvwrite_in_streamio=yes
|
||||
fi
|
||||
|
||||
# Check whether --enable-newlib-fseek-optimization was given.
|
||||
if test "${enable_newlib_fseek_optimization+set}" = set; then :
|
||||
enableval=$enable_newlib_fseek_optimization; if test "${newlib_fseek_optimization+set}" != set; then
|
||||
case "${enableval}" in
|
||||
yes) newlib_fseek_optimization=yes ;;
|
||||
no) newlib_fseek_optimization=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fseek-optimization option" "$LINENO" 5 ;;
|
||||
esac
|
||||
fi
|
||||
else
|
||||
newlib_fseek_optimization=yes
|
||||
fi
|
||||
|
||||
|
||||
# Make sure we can run config.sub.
|
||||
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
||||
@@ -11666,7 +11681,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11654 "configure"
|
||||
#line 11684 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -11772,7 +11787,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11760 "configure"
|
||||
#line 11790 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -12254,6 +12269,13 @@ _ACEOF
|
||||
|
||||
fi
|
||||
|
||||
if test "${newlib_fseek_optimization}" = "yes"; then
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define _FSEEK_OPTIMIZATION 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
|
||||
if test "x${iconv_encodings}" != "x" \
|
||||
|| test "x${iconv_to_encodings}" != "x" \
|
||||
|
Reference in New Issue
Block a user