2014-06-25 Joseph Myers <joseph@codesourcery.com>
+ * configure.ac (USE_REGPARMS): Don't define here.
+ * configure: Regenerated.
+ * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
+ * sysdeps/i386/configure: Regenerated.
+
* nptl/createthread.c: Don't include kernel-features.h.
* nptl/pthread_cancel.c: Likewise.
* nptl/pthread_condattr_setclock.c: Likewise.
test -n "$base_machine" || base_machine=$machine
-if test "$base_machine" = "i386"; then
- $as_echo "#define USE_REGPARMS 1" >>confdefs.h
-
-fi
-
# For the multi-arch option we need support in the assembler & linker.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
$as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
test -n "$base_machine" || base_machine=$machine
AC_SUBST(base_machine)
-if test "$base_machine" = "i386"; then
- AC_DEFINE(USE_REGPARMS)
-fi
-
# For the multi-arch option we need support in the assembler & linker.
AC_CACHE_CHECK([for assembler and linker STT_GNU_IFUNC support],
libc_cv_ld_gnu_indirect_function, [dnl
config_vars="$config_vars
config-cflags-novzeroupper = $libc_cv_cc_novzeroupper"
+$as_echo "#define USE_REGPARMS 1" >>confdefs.h
+
+
$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
])
LIBC_CONFIG_VAR([config-cflags-novzeroupper], [$libc_cv_cc_novzeroupper])
+AC_DEFINE(USE_REGPARMS)
+
dnl It is always possible to access static and hidden symbols in an
dnl position independent way.
AC_DEFINE(PI_STATIC_AND_HIDDEN)