From af17fdf91b3ac6cb90ebd9fc41a89e1fb5be7546 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 22 Aug 2018 10:12:24 -0400 Subject: [PATCH] Add -Wno-deprecated for PPC tests due to vec_ld and vec_st --- TestScripts/cryptest.sh | 6 ++++++ cryptest.sh | 6 ++++++ 2 files changed, 12 insertions(+) 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"