Skip to content

[rebranch] Temporarily ignore mm3dnow.h deprecation warning #9199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions clang/lib/Headers/mm3dnow.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
#ifndef _MM3DNOW_H_INCLUDED
#define _MM3DNOW_H_INCLUDED

#ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS
#warning "The <mm3dnow.h> header is deprecated, and 3dNow! intrinsics are unsupported. For other intrinsics, include <x86intrin.h>, 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 <mm3dnow.h> header is deprecated, and 3dNow! intrinsics are unsupported. For other intrinsics, include <x86intrin.h>, instead."
//#endif

#include <mmintrin.h>
#include <prfchwintrin.h>
Expand Down
6 changes: 4 additions & 2 deletions clang/test/Headers/mm3dnow.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down