[llvm] e3f908a - [exegesis] Attempt to workaround GCC7 compiler bug

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 12:01:39 PST 2022


Author: Roman Lebedev
Date: 2022-12-06T23:00:51+03:00
New Revision: e3f908a557d3e463353aad6b41a6fcd77d049c71

URL: https://github.com/llvm/llvm-project/commit/e3f908a557d3e463353aad6b41a6fcd77d049c71
DIFF: https://github.com/llvm/llvm-project/commit/e3f908a557d3e463353aad6b41a6fcd77d049c71.diff

LOG: [exegesis] Attempt to workaround GCC7 compiler bug

https://lab.llvm.org/staging/#/builders/235/builds/731/steps/5/logs/FAIL__Building_CXX_object_tools_llvm-exegesis_lib_

Added: 
    

Modified: 
    llvm/tools/llvm-exegesis/lib/CodeTemplate.h

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/lib/CodeTemplate.h b/llvm/tools/llvm-exegesis/lib/CodeTemplate.h
index 9235217af944e..16982f9253da6 100644
--- a/llvm/tools/llvm-exegesis/lib/CodeTemplate.h
+++ b/llvm/tools/llvm-exegesis/lib/CodeTemplate.h
@@ -133,7 +133,10 @@ struct CodeTemplate {
   // the pointer to this memory is passed in to the function.
   unsigned ScratchSpacePointerInReg = 0;
 
+#if defined(__GNUC__) && (defined(__clang__) || LLVM_GNUC_PREREQ(8, 0, 0))
+  // FIXME: GCC7 bug workaround. Drop #if after GCC7 no longer supported.
 private:
+#endif
   CodeTemplate(const CodeTemplate &);            // default
   CodeTemplate &operator=(const CodeTemplate &); // default
 };


        


More information about the llvm-commits mailing list