Skip to content

Commit

Permalink
Remove -xmemalign=41 for SunCC and Sparc
Browse files Browse the repository at this point in the history
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 (weidai11/cryptopp#691).
  • Loading branch information
noloader committed Jul 21, 2018
1 parent ad54f6a commit a7ecb6c
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions configure.ac
Expand Up @@ -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.

Expand Down

0 comments on commit a7ecb6c

Please sign in to comment.