From 58e1f97da9136a850ad5df25facd48635865a2e7 Mon Sep 17 00:00:00 2001 From: Ben Barham Date: Fri, 30 Aug 2024 15:24:51 -0700 Subject: [PATCH] [rebranch] Temporarily ignore mm3dnow.h deprecation warning Discussing upstream in https://github.com/llvm/llvm-project/pull/96246. For now just remove the warning. --- clang/lib/Headers/mm3dnow.h | 8 +++++--- clang/test/Headers/mm3dnow.c | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/clang/lib/Headers/mm3dnow.h b/clang/lib/Headers/mm3dnow.h index afffba3a9c75e..2e62ac018de81 100644 --- a/clang/lib/Headers/mm3dnow.h +++ b/clang/lib/Headers/mm3dnow.h @@ -12,9 +12,11 @@ #ifndef _MM3DNOW_H_INCLUDED #define _MM3DNOW_H_INCLUDED -#ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS -#warning "The header is deprecated, and 3dNow! intrinsics are unsupported. For other intrinsics, include , instead." -#endif +// FIXME: Should be adding a deprecation warning here, but disabling for now to avoid a warning for +// anything including the intrinsics module when modules are enabled. +//#ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS +//#warning "The header is deprecated, and 3dNow! intrinsics are unsupported. For other intrinsics, include , instead." +//#endif #include #include diff --git a/clang/test/Headers/mm3dnow.c b/clang/test/Headers/mm3dnow.c index a9b6dd88f8034..96d2bd54cc1f2 100644 --- a/clang/test/Headers/mm3dnow.c +++ b/clang/test/Headers/mm3dnow.c @@ -1,6 +1,8 @@ -// RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify +// FIXME: Deprecation skipped to avoid a warning for anything including the intrinsics module when +// modules are enabled. +// SKIPPED: %clang_cc1 -fsyntax-only -ffreestanding %s -verify // RUN: %clang_cc1 -fsyntax-only -D_CLANG_DISABLE_CRT_DEPRECATION_WARNINGS -ffreestanding %s -verify -// RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify +// SKIPPED: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify #if defined(i386) || defined(__x86_64__) #ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS