From a185d5132dad19566763f27b1f2dc0caa95daadf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Oct 2021 17:26:30 -0700 Subject: [PATCH] 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. --- llvm/include/llvm/Support/Compiler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 0158872..262e8f9 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 -- 2.7.4