[clang] 5b72f5c - [Clang] Enable hip_atomic deprecation warning by default (#230378)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 16 02:38:36 PDT 2026
Author: Aaditya
Date: 2026-10-16T15:08:30+05:30
New Revision: 5b72f5cb6c68a769af14f6f093f3d03b351bc8f6
URL: https://github.com/llvm/llvm-project/commit/5b72f5cb6c68a769af14f6f093f3d03b351bc8f6
DIFF: https://github.com/llvm/llvm-project/commit/5b72f5cb6c68a769af14f6f093f3d03b351bc8f6.diff
LOG: [Clang] Enable hip_atomic deprecation warning by default (#230378)
Added:
Modified:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/test/SemaCUDA/atomic-ops.cu
clang/test/SemaCUDA/spirv-amdgcn-atomic-ops.cu
clang/test/SemaHIP/atomic-deprecated.hip
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index 94fe19a6636f72..a4a7fb91e6b39d 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -6427,7 +6427,7 @@ def warn_deprecated_builtin : Warning<
InGroup<DeprecatedBuiltins>;
def warn_hip_deprecated_builtin : Warning<
"builtin %0 is deprecated; use %1 instead">,
- InGroup<HipDeprecatedBuiltins>, DefaultIgnore;
+ InGroup<HipDeprecatedBuiltins>;
def warn_deprecated_builtin_no_suggestion : Warning<"builtin %0 is deprecated">,
InGroup<DeprecatedBuiltins>;
def err_unavailable : Error<"%0 is unavailable">;
diff --git a/clang/test/SemaCUDA/atomic-ops.cu b/clang/test/SemaCUDA/atomic-ops.cu
index 8ba3ca71b11571..bfe828109f2b0b 100644
--- a/clang/test/SemaCUDA/atomic-ops.cu
+++ b/clang/test/SemaCUDA/atomic-ops.cu
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -x hip -std=c++11 -triple amdgpu -fcuda-is-device -verify -fsyntax-only %s
+// RUN: %clang_cc1 -x hip -std=c++11 -triple amdgpu -fcuda-is-device -verify -fsyntax-only -Wno-hip-deprecated-builtins %s
#include "Inputs/cuda.h"
diff --git a/clang/test/SemaCUDA/spirv-amdgcn-atomic-ops.cu b/clang/test/SemaCUDA/spirv-amdgcn-atomic-ops.cu
index 503e786877819d..06b7f902438594 100644
--- a/clang/test/SemaCUDA/spirv-amdgcn-atomic-ops.cu
+++ b/clang/test/SemaCUDA/spirv-amdgcn-atomic-ops.cu
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -x hip -std=c++11 -triple spirv64-amd-amdhsa -fcuda-is-device -verify -fsyntax-only %s
+// RUN: %clang_cc1 -x hip -std=c++11 -triple spirv64-amd-amdhsa -fcuda-is-device -verify -fsyntax-only -Wno-hip-deprecated-builtins %s
#include "Inputs/cuda.h"
diff --git a/clang/test/SemaHIP/atomic-deprecated.hip b/clang/test/SemaHIP/atomic-deprecated.hip
index b2d5baf9e9d456..45658ed79699be 100644
--- a/clang/test/SemaHIP/atomic-deprecated.hip
+++ b/clang/test/SemaHIP/atomic-deprecated.hip
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -x hip -triple amdgpu -fcuda-is-device -verify -fsyntax-only -Whip-deprecated-builtins %s
-// RUN: %clang_cc1 -x hip -triple amdgpu -fcuda-is-device -fdiagnostics-parseable-fixits -Whip-deprecated-builtins %s 2>&1 | FileCheck %s
+// RUN: %clang_cc1 -x hip -triple amdgpu -fcuda-is-device -verify -fsyntax-only %s
+// RUN: %clang_cc1 -x hip -triple amdgpu -fcuda-is-device -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
#define __device__ __attribute__((device))
More information about the cfe-commits
mailing list