diff --git a/TestScripts/cryptest.sh b/TestScripts/cryptest.sh index 73bf6f5a..83a90340 100755 --- a/TestScripts/cryptest.sh +++ b/TestScripts/cryptest.sh @@ -1009,6 +1009,12 @@ if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0") ]]; then WARNING_CXXFLAGS+=("-Wcast-align" "-Wwrite-strings" "-Wformat=2" "-Wformat-security") fi +# On PowerPC we test the original Altivec load and store with unaligned data. +# Modern compilers generate a warning and recommend the new loads and stores. +if [[ ("$GCC_COMPILER" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0") ) ]]; then + WARNING_CXXFLAGS+=("-Wno-deprecated") +fi + echo | tee -a "$TEST_RESULTS" echo "DEBUG_CXXFLAGS: $DEBUG_CXXFLAGS" | tee -a "$TEST_RESULTS" echo "RELEASE_CXXFLAGS: $RELEASE_CXXFLAGS" | tee -a "$TEST_RESULTS" diff --git a/cryptest.sh b/cryptest.sh index 73bf6f5a..83a90340 100755 --- a/cryptest.sh +++ b/cryptest.sh @@ -1009,6 +1009,12 @@ if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0") ]]; then WARNING_CXXFLAGS+=("-Wcast-align" "-Wwrite-strings" "-Wformat=2" "-Wformat-security") fi +# On PowerPC we test the original Altivec load and store with unaligned data. +# Modern compilers generate a warning and recommend the new loads and stores. +if [[ ("$GCC_COMPILER" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0") ) ]]; then + WARNING_CXXFLAGS+=("-Wno-deprecated") +fi + echo | tee -a "$TEST_RESULTS" echo "DEBUG_CXXFLAGS: $DEBUG_CXXFLAGS" | tee -a "$TEST_RESULTS" echo "RELEASE_CXXFLAGS: $RELEASE_CXXFLAGS" | tee -a "$TEST_RESULTS"