From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 865D73858D32; Mon, 19 Feb 2024 17:03:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 865D73858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708362238; bh=HUhXzdLCcdTrre8kKHPYFvJQIr70ThoNIRUdhAUPAF0=; h=From:To:Subject:Date:From; b=KMSGYrToU9s55SoKwz7ged1z759HrVPOHRZhEQAIJ7Vox/I4y8O5rlVEQIIfib80d 9RaVv0Bzl2VvD0zblnHbFPNl3zmooewrgUaqBKxkVhLSbe73jpFBdsJU5FxA1ffBLm zfmhrvliKOhGehWpyYSlkI6VX+MBGY7wXXgaHwpU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9067] GCN: Restore lost '__gfx90a__' target CPU definition X-Act-Checkin: gcc X-Git-Author: Thomas Schwinge X-Git-Refname: refs/heads/master X-Git-Oldrev: 3a6f3354eaaf38b5e6be41e4ebf521d299593a6e X-Git-Newrev: 159174f25716c18a74a915cb01b9a28024ea7a3d Message-Id: <20240219170358.865D73858D32@sourceware.org> Date: Mon, 19 Feb 2024 17:03:58 +0000 (GMT) List-Id: https://gcc.gnu.org/g:159174f25716c18a74a915cb01b9a28024ea7a3d commit r14-9067-g159174f25716c18a74a915cb01b9a28024ea7a3d Author: Thomas Schwinge Date: Thu Feb 8 23:27:19 2024 +0100 GCN: Restore lost '__gfx90a__' target CPU definition Also, add some safeguards for the future. Fix-up for commit 52a2c659ae6c21f84b6acce0afcb9b93b9dc71a0 "GCN: Add pre-initial support for gfx1100". gcc/ * config/gcn/gcn.h (TARGET_CPU_CPP_BUILTINS): Restore lost '__gfx90a__' target CPU definition. Add some safeguards for the future. Diff: --- gcc/config/gcn/gcn.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/config/gcn/gcn.h b/gcc/config/gcn/gcn.h index a17f16aacc40..c314c7b4ae8e 100644 --- a/gcc/config/gcn/gcn.h +++ b/gcc/config/gcn/gcn.h @@ -32,6 +32,8 @@ builtin_define ("__RDNA2__"); \ else if (TARGET_RDNA3) \ builtin_define ("__RDNA3__"); \ + else \ + gcc_unreachable (); \ if (TARGET_FIJI) \ { \ builtin_define ("__fiji__"); \ @@ -43,10 +45,14 @@ builtin_define ("__gfx906__"); \ else if (TARGET_GFX908) \ builtin_define ("__gfx908__"); \ + else if (TARGET_GFX90a) \ + builtin_define ("__gfx90a__"); \ else if (TARGET_GFX1030) \ builtin_define ("__gfx1030"); \ else if (TARGET_GFX1100) \ builtin_define ("__gfx1100__"); \ + else \ + gcc_unreachable (); \ } while (0) #define ASSEMBLER_DIALECT (TARGET_RDNA2_PLUS ? 1 : 0)