[llvm] a185d51 - LLVM_ATTRIBUTE_NODEBUG: GCC 4.0 apparently had ((nodebug)) but removed it.
Chris Lattner via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 11 17:27:09 PDT 2021
Author: Chris Lattner
Date: 2021-10-11T17:26:30-07:00
New Revision: a185d5132dad19566763f27b1f2dc0caa95daadf
URL: https://github.com/llvm/llvm-project/commit/a185d5132dad19566763f27b1f2dc0caa95daadf
DIFF: https://github.com/llvm/llvm-project/commit/a185d5132dad19566763f27b1f2dc0caa95daadf.diff
LOG: LLVM_ATTRIBUTE_NODEBUG: GCC 4.0 apparently had ((nodebug)) but removed it.
This should fix a bunch of warnings on the flang-aarch64-latest-gcc builder.
Added:
Modified:
llvm/include/llvm/Support/Compiler.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index 0158872f3c34a..262e8f9e64ff8 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -250,8 +250,8 @@
/// LLVM_ATTRIBUTE_NO_DEBUG - On compilers where we have a directive to do
/// so, mark a method "no debug" because debug info makes the debugger
-/// experience worse. GCC introduced this in GCC 4.0
-#if __has_attribute(nodebug) || LLVM_GNUC_PREREQ(4, 0, 0)
+/// experience worse.
+#if __has_attribute(nodebug)
#define LLVM_ATTRIBUTE_NODEBUG __attribute__((nodebug))
#else
#define LLVM_ATTRIBUTE_NODEBUG
More information about the llvm-commits
mailing list