Skip to content

Commit afee7f1

Browse files
authored
Merge pull request #9199 from bnbarham/remove-mm3d-warning
[rebranch] Temporarily ignore mm3dnow.h deprecation warning
2 parents 0d5ae13 + 58e1f97 commit afee7f1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

clang/lib/Headers/mm3dnow.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
#ifndef _MM3DNOW_H_INCLUDED
1313
#define _MM3DNOW_H_INCLUDED
1414

15-
#ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS
16-
#warning "The <mm3dnow.h> header is deprecated, and 3dNow! intrinsics are unsupported. For other intrinsics, include <x86intrin.h>, instead."
17-
#endif
15+
// FIXME: Should be adding a deprecation warning here, but disabling for now to avoid a warning for
16+
// anything including the intrinsics module when modules are enabled.
17+
//#ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS
18+
//#warning "The <mm3dnow.h> header is deprecated, and 3dNow! intrinsics are unsupported. For other intrinsics, include <x86intrin.h>, instead."
19+
//#endif
1820

1921
#include <mmintrin.h>
2022
#include <prfchwintrin.h>

clang/test/Headers/mm3dnow.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
// RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify
1+
// FIXME: Deprecation skipped to avoid a warning for anything including the intrinsics module when
2+
// modules are enabled.
3+
// SKIPPED: %clang_cc1 -fsyntax-only -ffreestanding %s -verify
24
// RUN: %clang_cc1 -fsyntax-only -D_CLANG_DISABLE_CRT_DEPRECATION_WARNINGS -ffreestanding %s -verify
3-
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify
5+
// SKIPPED: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify
46

57
#if defined(i386) || defined(__x86_64__)
68
#ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS

0 commit comments

Comments
 (0)