From patchwork Tue Feb 27 10:14:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 86425 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2FD8A3858436 for ; Tue, 27 Feb 2024 10:15:02 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 30CEA3858C31 for ; Tue, 27 Feb 2024 10:14:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 30CEA3858C31 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 30CEA3858C31 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709028872; cv=none; b=iHUwdDIxYqJeeWRjKsGszgUlGbVxkbZ9LPJUNoyIeEh2mtM9daTywLriKaOoaErEi5nx6aVQOUHShIfjzBgqw7MR252Flx4tX6alX5zjS20HeWSHaMhAfRNZ7HzC0x5V0cTRL0J7MvS4g3I6/jqOfRJ1nNvPXmC0VIzEFd7WAlA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709028872; c=relaxed/simple; bh=Q7rqInky2yBSfKT1kM0Ihe893hOuqmoT2WPENRuprYw=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=TqQYke2XIZ62tPkil4bGvw+e6um5DRWrePqXIe3TS6yGvG9QFFHGIYz1e9XogMwbtmbYo8OaE7oqqe6GpszE64bdCjEiRcjdtnLECdKYIx+Az5sAjuukIUoD4F+HM0fPIljA4RlwPgE4zfKkAksr+ClMv3NFZ1t2Q5A5XHvuzaA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1E0DBDA7; Tue, 27 Feb 2024 02:15:08 -0800 (PST) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.78.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 37A9C3F762; Tue, 27 Feb 2024 02:14:29 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw , nickc@redhat.com Subject: [PATCH] arm: warn about deprecation of iwmmx in mmintrin.h Date: Tue, 27 Feb 2024 10:14:17 +0000 Message-Id: <20240227101417.2031380-1-rearnsha@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org GCC 13's changes file documents that iwmmx is deprecated. Raise the bar by warning when the mmintrin.h header is included by users, but provide a way to suppress the warning. gcc: * config/arm/mmintrin.h: Warn if this header is included without defining __ENABLE_DEPRECATED_IWMMXT. --- gcc/config/arm/mmintrin.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/arm/mmintrin.h b/gcc/config/arm/mmintrin.h index 07659502bf2..e9cc3ddd7ab 100644 --- a/gcc/config/arm/mmintrin.h +++ b/gcc/config/arm/mmintrin.h @@ -28,6 +28,9 @@ #error mmintrin.h included without enabling WMMX/WMMX2 instructions (e.g. -march=iwmmxt or -march=iwmmxt2) #endif +#ifndef __ENABLE_DEPRECATED_IWMMXT +#warning support for WMMX/WMMX2 is deprecated and will be removed in GCC 15. Define __ENABLE_DEPRECATED_IWMMXT to suppress this warning +#endif #if defined __cplusplus extern "C" {