From a7ecb6c666edf2c77ba0052c8a87e2ef65b713a9 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 21 Jul 2018 08:07:05 -0400 Subject: [PATCH] Remove -xmemalign=41 for SunCC and Sparc We recently received access to the OpenCSW compile farm (https://www.opencsw.org/extend-it/signup/to-upstream-maintainers/). The farm provides access to Solaris 9 through 11 on x86 and Sparc hardware. We cleared the issue causing the SIGBUS. Also see Issue 691, GetAlignmentOf returns 4 on Sparc when T=word64 (https://github.com/weidai11/cryptopp/issues/691). --- configure.ac | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/configure.ac b/configure.ac index fa97e52..1cf1d33 100644 --- a/configure.ac +++ b/configure.ac @@ -512,33 +512,6 @@ if test "$IS_SUN_OS" -ne "0" && test "$IS_SUN_COMPILER" -ne "0"; then CXXFLAGS="$SAVED_CXXFLAGS" fi -############################################################################# -## SPARC (Solaris), SunCC compiler options - -## TODO: Does GCC need an equivalent to -xmemalign=4i? - -if test "$IS_SUN_OS" -ne "0" && test "$IS_SUN_COMPILER" -ne "0"; then -if test "$IS_SPARC" -ne "0"; then - - ## Save CXXFLAGS - SAVED_CXXFLAGS="$CXXFLAGS" - - CXXFLAGS="-xmemalign=4i" - AC_MSG_CHECKING([if $CXXNAME supports $CXXFLAGS]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], - [AC_MSG_RESULT([yes]); AC_SUBST([tr_RESULT], [1])], - [AC_MSG_RESULT([no]); AC_SUBST([tr_RESULT], [0])] - ) - - if test "$tr_RESULT" -eq "1"; then - AM_CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS" - fi - - ## Restore CXXFLAGS - CXXFLAGS="$SAVED_CXXFLAGS" -fi -fi - ############################################################################# ## IA-32, i386, i586, i686, x86_64, etc.