Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
glibc-utils
0001-S390-Configure-check-for-vector-support-in...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-S390-Configure-check-for-vector-support-in-gcc.patch of Package glibc-utils
2016-05-25 Stefan Liebler <stli@linux.vnet.ibm.com> * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine. * sysdeps/s390/configure.ac: Add test for S390 vector register support in gcc. * sysdeps/s390/configure: Regenerated. Index: glibc-2.22/config.h.in =================================================================== --- glibc-2.22.orig/config.h.in +++ glibc-2.22/config.h.in @@ -94,6 +94,10 @@ /* Define if assembler supports vector instructions on S390. */ #undef HAVE_S390_VX_ASM_SUPPORT +/* Define if gcc supports vector registers as clobbers in inline assembly + on S390. */ +#undef HAVE_S390_VX_GCC_SUPPORT + /* Define if assembler supports Intel MPX. */ #undef HAVE_MPX_SUPPORT Index: glibc-2.22/sysdeps/s390/configure =================================================================== --- glibc-2.22.orig/sysdeps/s390/configure +++ glibc-2.22/sysdeps/s390/configure @@ -68,6 +68,38 @@ if test $ac_verc_fail = yes; then fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 vector support in gcc" >&5 +$as_echo_n "checking for S390 vector support in gcc... " >&6; } +if ${libc_cv_gcc_s390_vx+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat > conftest.c <<\EOF +void testvecclobber () +{ + __asm__ ("" : : : "v16"); +} +EOF +if { ac_try='${CC-cc} --shared conftest.c -o conftest.o &> /dev/null' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } ; +then + libc_cv_gcc_s390_vx=yes +else + libc_cv_gcc_s390_vx=no +fi +rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_s390_vx" >&5 +$as_echo "$libc_cv_gcc_s390_vx" >&6; } + +if test "$libc_cv_gcc_s390_vx" = yes ; +then + $as_echo "#define HAVE_S390_VX_GCC_SUPPORT 1" >>confdefs.h + +fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_tbegin" >&5 $as_echo_n "checking for __builtin_tbegin... " >&6; } Index: glibc-2.22/sysdeps/s390/configure.ac =================================================================== --- glibc-2.22.orig/sysdeps/s390/configure.ac +++ glibc-2.22/sysdeps/s390/configure.ac @@ -10,6 +10,27 @@ AC_CHECK_PROG_VER(AS, $AS, --version, [GNU assembler.* \([0-9]*\.[0-9.]*\)], [2.2[4-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*], critic_missing="$critic_missing The program AS is required in version >= 2.24 for target S390.") +AC_CACHE_CHECK(for S390 vector support in gcc, libc_cv_gcc_s390_vx, [dnl +cat > conftest.c <<\EOF +void testvecclobber () +{ + __asm__ ("" : : : "v16"); +} +EOF +dnl +dnl test, if gcc supports S390 vector registers as clobber in inline assembly +if AC_TRY_COMMAND([${CC-cc} --shared conftest.c -o conftest.o &> /dev/null]) ; +then + libc_cv_gcc_s390_vx=yes +else + libc_cv_gcc_s390_vx=no +fi +rm -f conftest* ]) + +if test "$libc_cv_gcc_s390_vx" = yes ; +then + AC_DEFINE(HAVE_S390_VX_GCC_SUPPORT) +fi AC_CACHE_CHECK(for __builtin_tbegin, libc_cv_gcc_builtin_tbegin, [dnl cat > conftest.c <<\EOF
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor