From 53579c42ad44ea01961df33e4218784170f0cea5 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Fri, 9 Oct 2020 20:21:24 +0200 Subject: [PATCH] Disable -Wpsabi There was an ABI change for 64 bit aligned vectors between gcc 5 and gcc 6 on a few 64 bit platforms, and gcc 10 reports "note" level warnings for each affected access, which is very noisy and hides more important information. These notes are issued because there is no reliable diagnostic for actual problems. --- CMakeModules/Warnings.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeModules/Warnings.cmake b/CMakeModules/Warnings.cmake index aa654285b9..3a39553bb5 100644 --- a/CMakeModules/Warnings.cmake +++ b/CMakeModules/Warnings.cmake @@ -167,4 +167,13 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) # This one is different, it is used to guard warning removal for this inside the code set( HAVE_WIMPLICIT_FLOAT_CONVERSION true ) endif() + + + # Avoid ABI warnings, specifically one about an ABI change on ppc64el from gcc5 to gcc 6. + CHECK_CXX_COMPILER_FLAG( "-Wpsabi" COMPILER_SUPPORTS_WPSABI ) + + if( COMPILER_SUPPORTS_WPSABI ) + set( WARN_FLAGS_CXX "${WARN_FLAGS_CXX} -Wno-psabi" ) + message( STATUS "Disabling warning -Wpsabi" ) + endif() endif()