[llvm] r318372 - Need to work around the gcc Wunused-function bug as far back as gcc 6.1, update accordingly.

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 19:18:13 PST 2017


Author: echristo
Date: Wed Nov 15 19:18:13 2017
New Revision: 318372

URL: http://llvm.org/viewvc/llvm-project?rev=318372&view=rev
Log:
Need to work around the gcc Wunused-function bug as far back as gcc 6.1, update accordingly.

Modified:
    llvm/trunk/unittests/Transforms/Scalar/LoopPassManagerTest.cpp

Modified: llvm/trunk/unittests/Transforms/Scalar/LoopPassManagerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Transforms/Scalar/LoopPassManagerTest.cpp?rev=318372&r1=318371&r2=318372&view=diff
==============================================================================
--- llvm/trunk/unittests/Transforms/Scalar/LoopPassManagerTest.cpp (original)
+++ llvm/trunk/unittests/Transforms/Scalar/LoopPassManagerTest.cpp Wed Nov 15 19:18:13 2017
@@ -21,8 +21,8 @@
 #include "llvm/IR/PassManager.h"
 #include "llvm/Support/SourceMgr.h"
 
-// Workaround for the gcc 7.1 bug PR80916.
-#if defined(__GNUC__) && __GNUC__ > 6
+// Workaround for the gcc 6.1 bug PR80916.
+#if defined(__GNUC__) && __GNUC__ > 5
 #  pragma GCC diagnostic push
 #  pragma GCC diagnostic ignored "-Wunused-function"
 #endif
@@ -30,7 +30,7 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
-#if defined(__GNUC__) && __GNUC__ > 6
+#if defined(__GNUC__) && __GNUC__ > 5
 #  pragma GCC diagnostic pop
 #endif
 




More information about the llvm-commits mailing list