<div dir="ltr"><div dir="ltr"><a class="gmail_plusreply" id="plusReplyChip-0" href="mailto:benny.kra@googlemail.com" tabindex="-1">@benny.kra@gmail.com</a><div><br></div><div>I am also seeing the warnings (mentioned below) out of GCC:</div><div>```</div>Using built-in specs.<br>COLLECT_GCC=/usr/bin/g++<br>COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc64le-linux-gnu/9/lto-wrapper<br>OFFLOAD_TARGET_NAMES=nvptx-none<br>OFFLOAD_TARGET_DEFAULT=1<br>Target: powerpc64le-linux-gnu<br>Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=powerpc64le-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --enable-plugin --enable-default-pie --with-system-zlib --disable-libphobos --enable-objc-gc=auto --enable-secureplt --with-cpu=power8 --enable-targets=powerpcle-linux --disable-multilib --enable-multiarch --disable-werror --with-long-double-128 --enable-offload-targets=nvptx-none=/build/gcc-9-xsOZPb/gcc-9-9.3.0/debian/tmp-nvptx/usr --without-cuda-driver --enable-checking=release --build=powerpc64le-linux-gnu --host=powerpc64le-linux-gnu --target=powerpc64le-linux-gnu<br>Thread model: posix<br><div>gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)</div><div>```<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 15, 2021 at 9:11 AM Danila Malyutin <<a href="mailto:notifications@github.com">notifications@github.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p></p>
<p>Hm, I get errors compiling with GCC 6.2.0:</p>
<pre><code>../unittests/IR/PassBuilderCallbacksTest.cpp: In member function ‘virtual void {anonymous}::LoopCallbacksTest_InstrumentedInvalidatingPasses_Test::TestBody()’:
../unittests/IR/PassBuilderCallbacksTest.cpp:894:76: error: no matching function for call to ‘Invoke(void(llvm::Loop&, llvm::LoopAnalysisManager&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&))’
.WillOnce(DoAll(WithArgs<0, 1, 2, 3>(Invoke(PassHandle.invalidateLoop)),
^
In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0,
from ../include/llvm/Testing/Support/Error.h:16,
from ../unittests/IR/PassBuilderCallbacksTest.cpp:9:
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: candidate: template<class Class, class MethodPtr> testing::internal::InvokeMethodAction<Class, MethodPtr> testing::Invoke(Class*, MethodPtr)
internal::InvokeMethodAction<Class, MethodPtr> Invoke(Class* obj_ptr,
^~~~~~
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: template argument deduction/substitution failed:
../unittests/IR/PassBuilderCallbacksTest.cpp:894:76: note: candidate expects 2 arguments, 1 provided
.WillOnce(DoAll(WithArgs<0, 1, 2, 3>(Invoke(PassHandle.invalidateLoop)),
^
In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0,
from ../include/llvm/Testing/Support/Error.h:16,
from ../unittests/IR/PassBuilderCallbacksTest.cpp:9:
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: candidate: typename std::decay<_Tp>::type testing::Invoke(FunctionImpl&&) [with FunctionImpl = void(llvm::Loop&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&); typename std::decay<_Tp>::type = void (*)(llvm::Loop&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)]
typename std::decay<FunctionImpl>::type Invoke(FunctionImpl&& function_impl) {
^~~~~~
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: no known conversion for argument 1 from ‘void(llvm::Loop&, llvm::LoopAnalysisManager&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&) {aka void(llvm::Loop&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)}’ to ‘void (&&)(llvm::Loop&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)’
../unittests/IR/PassBuilderCallbacksTest.cpp: In member function ‘virtual void {anonymous}::LoopCallbacksTest_InstrumentedInvalidatingLoopNestPasses_Test::TestBody()’:
../unittests/IR/PassBuilderCallbacksTest.cpp:944:64: error: no matching function for call to ‘Invoke(void(llvm::LoopNest&, llvm::LoopAnalysisManager&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&))’
.WillOnce(DoAll(Invoke(ExtraPassHandle.invalidateLoopNest),
^
In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0,
from ../include/llvm/Testing/Support/Error.h:16,
from ../unittests/IR/PassBuilderCallbacksTest.cpp:9:
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: candidate: template<class Class, class MethodPtr> testing::internal::InvokeMethodAction<Class, MethodPtr> testing::Invoke(Class*, MethodPtr)
internal::InvokeMethodAction<Class, MethodPtr> Invoke(Class* obj_ptr,
^~~~~~
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: template argument deduction/substitution failed:
../unittests/IR/PassBuilderCallbacksTest.cpp:944:64: note: candidate expects 2 arguments, 1 provided
.WillOnce(DoAll(Invoke(ExtraPassHandle.invalidateLoopNest),
^
In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0,
from ../include/llvm/Testing/Support/Error.h:16,
from ../unittests/IR/PassBuilderCallbacksTest.cpp:9:
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: candidate: typename std::decay<_Tp>::type testing::Invoke(FunctionImpl&&) [with FunctionImpl = void(llvm::LoopNest&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&); typename std::decay<_Tp>::type = void (*)(llvm::LoopNest&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)]
typename std::decay<FunctionImpl>::type Invoke(FunctionImpl&& function_impl) {
^~~~~~
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: no known conversion for argument 1 from ‘void(llvm::LoopNest&, llvm::LoopAnalysisManager&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&) {aka void(llvm::LoopNest&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)}’ to ‘void (&&)(llvm::LoopNest&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)’
../unittests/IR/PassBuilderCallbacksTest.cpp: In member function ‘virtual void {anonymous}::CGSCCCallbacksTest_InstrumentedInvalidatingPasses_Test::TestBody()’:
../unittests/IR/PassBuilderCallbacksTest.cpp:1142:75: error: no matching function for call to ‘Invoke(void(llvm::LazyCallGraph::SCC&, llvm::CGSCCAnalysisManager&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&))’
.WillOnce(DoAll(WithArgs<0, 1, 2, 3>(Invoke(PassHandle.invalidateSCC)),
^
In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0,
from ../include/llvm/Testing/Support/Error.h:16,
from ../unittests/IR/PassBuilderCallbacksTest.cpp:9:
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: candidate: template<class Class, class MethodPtr> testing::internal::InvokeMethodAction<Class, MethodPtr> testing::Invoke(Class*, MethodPtr)
internal::InvokeMethodAction<Class, MethodPtr> Invoke(Class* obj_ptr,
^~~~~~
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: template argument deduction/substitution failed:
../unittests/IR/PassBuilderCallbacksTest.cpp:1142:75: note: candidate expects 2 arguments, 1 provided
.WillOnce(DoAll(WithArgs<0, 1, 2, 3>(Invoke(PassHandle.invalidateSCC)),
^
In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0,
from ../include/llvm/Testing/Support/Error.h:16,
from ../unittests/IR/PassBuilderCallbacksTest.cpp:9:
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: candidate: typename std::decay<_Tp>::type testing::Invoke(FunctionImpl&&) [with FunctionImpl = void(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&); typename std::decay<_Tp>::type = void (*)(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)]
typename std::decay<FunctionImpl>::type Invoke(FunctionImpl&& function_impl) {
^~~~~~
../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: no known conversion for argument 1 from ‘void(llvm::LazyCallGraph::SCC&, llvm::CGSCCAnalysisManager&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) {aka void(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)}’ to ‘void (&&)(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)’
</code></pre>
<p>And also some warnings like</p>
<pre><code>warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
TYPED_TEST_SUITE(RangeSetTest, IntTypes);
</code></pre>
<p style="font-size:small;color:rgb(102,102,102)">—<br>You are receiving this because you are subscribed to this thread.<br>Reply to this email directly, <a href="https://github.com/llvm/llvm-project/commit/d4d80a2903c1d074008cac653cdb0b5fe39b8a00#commitcomment-50854812" target="_blank">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAU2TA2YPKBA57N4FCGTWHTTNZXI5ANCNFSM4454CZGA" target="_blank">unsubscribe</a>.<img alt="" width="1" height="1"></p>
</blockquote></div></div>