From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 407603858D39 for ; Mon, 14 Aug 2023 09:33:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 407603858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="6.01,172,1684828800"; d="scan'208";a="14365820" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 14 Aug 2023 01:33:50 -0800 IronPort-SDR: eWICWANA9WXJ9qLhjTGkNHq4o8McurF2ZENKsHo67tao4lvMTBuhmYuwyAnl1eGla2q8O6ZU+U WQBbr3EOpaDX4iOZEsmpcwdiv1dgHywbxqRDUfha+N3zGMeTaAyekVRSZq3CV5fyx/mc3art8u qsE4wkVRVEhZCaRnXqRbe9g1N2uUVwZHrOpckwRwcPUr0Yg5KUG3fDwfVEQidPdSnmguz4laP3 tBCTsm0AitBdbjZx04rzJLj6+0ryVAGQST7HqwIbAtb8oJT4OMSM2Yz/3hbU+gPzmR2giLponS 19E= Message-ID: <00ea4017-4d86-23bd-be0f-2232196ba5be@codesourcery.com> Date: Mon, 14 Aug 2023 11:33:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Bootstrap fail on GCC 13 (was: Re: [PATCH] x86: Update model values for Alderlake, Rocketlake and Raptorlake.) Content-Language: en-US To: , "Cui, Lili" References: <20230628105209.1879240-1-lili.cui@intel.com> From: Tobias Burnus In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-13.mgc.mentorg.com (139.181.222.13) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_SHORT,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, your GCC 13 commit https://gcc.gnu.org/r13-7720-g0fa76e35a5f9e1 x86: Update model values for R= aptorlake. causes a build fail: gcc/common/config/i386/cpuinfo.h: In function =E2=80=98const char* get_inte= l_cpu(__processor_model*, __processor_model2*, unsigned int*)=E2=80=99: gcc/common/config/i386/cpuinfo.h:543:5: error: duplicate case value 543 | case 0xbf: | ^~~~ gcc/common/config/i386/cpuinfo.h:539:5: note: previously used here 539 | case 0xbf: | ^~~~ Your patch did: case 0x97: case 0x9a: case 0xbf: <<<<<< Existing case value /* Alder Lake. */ case 0xb7: + case 0xba: + case 0xbf: <<<<<< Newly added same case value /* Raptor Lake. */ Tobias On 29.06.23 05:06, Cui, Lili via Gcc-patches wrote: > I will directly commit this patch, it can be considered as an obvious pat= ch. > > Thanks, > Lili. > >> -----Original Message----- >> From: Gcc-patches = On >> Behalf Of Cui, Lili via Gcc-patches >> Sent: Wednesday, June 28, 2023 6:52 PM >> To: gcc-patches@gcc.gnu.org >> Cc: Liu, Hongtao >> Subject: [PATCH] x86: Update model values for Alderlake, Rocketlake and >> Raptorlake. >> >> Hi Hongtao, >> >> This patch is to update model values for Alderlake, Rocketlake and >> Raptorlake according to SDM. >> >> Ok for trunk? >> >> Thanks. >> Lili. >> >> Update model values for Alderlake, Rocketlake and Raptorlake according t= o >> SDM. >> >> gcc/ChangeLog >> >> * common/config/i386/cpuinfo.h (get_intel_cpu): Remove model >> value 0xa8 >> from Rocketlake, move model value 0xbf from Alderlake to >> Raptorlake. >> --- >> gcc/common/config/i386/cpuinfo.h | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/gcc/common/config/i386/cpuinfo.h >> b/gcc/common/config/i386/cpuinfo.h >> index 61559ed9de2..ae48bc17771 100644 >> --- a/gcc/common/config/i386/cpuinfo.h >> +++ b/gcc/common/config/i386/cpuinfo.h >> @@ -463,7 +463,6 @@ get_intel_cpu (struct __processor_model >> *cpu_model, >> cpu_model->__cpu_subtype =3D INTEL_COREI7_SKYLAKE; >> break; >> case 0xa7: >> - case 0xa8: >> /* Rocket Lake. */ >> cpu =3D "rocketlake"; >> CHECK___builtin_cpu_is ("corei7"); @@ -536,9 +535,9 @@ get_intel= _cpu >> (struct __processor_model *cpu_model, >> break; >> case 0x97: >> case 0x9a: >> - case 0xbf: >> /* Alder Lake. */ >> case 0xb7: >> + case 0xbf: >> /* Raptor Lake. */ >> case 0xaa: >> case 0xac: >> -- >> 2.25.1 ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955