From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailrelay.tugraz.at (mailrelay.tugraz.at [129.27.2.202]) by sourceware.org (Postfix) with ESMTPS id 8F7F63858C98; Mon, 25 Dec 2023 08:35:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8F7F63858C98 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=tugraz.at Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tugraz.at ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8F7F63858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.27.2.202 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703493359; cv=none; b=UbmTTZ1Wp4UNg54jyHfYP1P/zosrAQcTg16TlII4MkpQhCX4PP6HEAGPwA5OW6ipMvmpR+JKsONzWA4EGsDseEYQqXn+tHqBhR5EjKG5Q84RrpZsHojai1E/PZAcpKaT7tHDVLOe97D9OAcP0s9DkamjnMR4e9j5AqudqqZGGG4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703493359; c=relaxed/simple; bh=EEynMnH7Q9J8XVpDhRZY4vJIeQ072FBN+u0vfPtvJMw=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=uuOI10WEJZ6gKlaymXVj0APIisuY+EQg+xWxYIswCkg9xUq/OrEOF8oTpc4RFoDyDZjM8C/VXfz3P1iHsEnlVQiqwJyhYN3HYm3tm3IJOO4e+fgguVW6j1QO7v5CoQPdJOKhmMuIcc0mAscyycPHQp4mnStb7FUkrRY8GdrghJc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from vra-174-94.tugraz.at (vra-174-94.tugraz.at [129.27.174.94]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4SzB7N6zwCz3xBW; Mon, 25 Dec 2023 09:35:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1703493345; bh=bmvX8w8ttmAQAmMPFCoPMU00zsPHUitr3yLPpb/T3VU=; h=Subject:From:To:Date:In-Reply-To:References; b=guV85mYU04JMjvk/DET9YtKFb1ikYi82AHUs3/E9tiOetw8H9unAtqXZtH16KZS8H aI/V5qlpW9MKyRGS7QsnROTacyGbnwQfS+fS4mWndOrvI26LD0LorEmuAYcBUWnGc7 /hAa68v1ySiYhhglWZ8uAvFbpX2fP8ZbyxvtvyNw= Message-ID: Subject: Re: [r14-6770 Regression] FAIL: gcc.dg/gnu23-tag-4.c (test for excess errors) on Linux/x86_64 From: Martin Uecker To: "Jiang, Haochen" , "gcc-regression@gcc.gnu.org" , "gcc-patches@gcc.gnu.org" , Joseph Myers Date: Mon, 25 Dec 2023 09:35:44 +0100 In-Reply-To: References: <202312212107.3BLL7BkC2366876@shliclel4214.sh.intel.com> <317376ce79b481dbb63329ddc93da6bd89755527.camel@tugraz.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-TUG-Backscatter-control: G/VXY7/6zeyuAY/PU2/0qw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -0.4 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Yes, I am testing a patch. The DECL_FIELD_BIT_OFFSET are set inconsistently for some reason. Martin=20 Am Montag, dem 25.12.2023 um 07:49 +0000 schrieb Jiang, Haochen: > It is not a target specific issue, it will fail if we enabled AVX. >=20 > e.g.: >=20 > $ /export/users/haochenj/env/build_no_bootstrap_master/gcc/xgcc -B/export= /users/haochenj/env/build_no_bootstrap_master/gcc/ /export/users/haochenj/= src/gcc/master/gcc/testsuite/gcc.dg/gnu23-tag-4.c -m64 -mavx -fdiagnosti= cs-plain-output -std=3Dgnu23 -S -o gnu23-tag-4.s > /export/users/haochenj/src/gcc/master/gcc/testsuite/gcc.dg/gnu23-tag-4.c:= In function =E2=80=98bar=E2=80=99: > /export/users/haochenj/src/gcc/master/gcc/testsuite/gcc.dg/gnu23-tag-4.c:= 18:47: error: initialization of =E2=80=98struct g *=E2=80=99 from incompati= ble pointer type =E2=80=98struct g *=E2=80=99 [-Wincompatible-pointer-types= ] >=20 > Thx, > Haochen >=20 > > -----Original Message----- > > From: Martin Uecker > > Sent: Friday, December 22, 2023 5:39 PM > > To: gcc-regression@gcc.gnu.org; gcc-patches@gcc.gnu.org; Jiang, Haochen > > ; Joseph Myers > > Subject: Re: [r14-6770 Regression] FAIL: gcc.dg/gnu23-tag-4.c (test for= excess > > errors) on Linux/x86_64 > >=20 > >=20 > > Hm, this is weird, as it really seems to depend on the -march=3D.... S= o if there is > > really a difference between those structs which make them incompatible = on > > some archs, we should not consider them to be compatible in general. > >=20 > > struct g { int a[n]; int b; } *y; > > { struct g { int a[4]; int b; } *y2 =3D y; } > >=20 > > But I do not see what could go wrong here as sizeof / alignment is the = same for > > n =3D 4. So there is something else I missed.... > >=20 > >=20 > >=20 > > Am Freitag, dem 22.12.2023 um 05:07 +0800 schrieb haochen.jiang: > > > On Linux/x86_64, > > >=20 > > > 23fee88f84873b0b8b41c8e5a9b229d533fb4022 is the first bad commit > > > commit 23fee88f84873b0b8b41c8e5a9b229d533fb4022 > > > Author: Martin Uecker > > > Date: Tue Aug 15 14:58:32 2023 +0200 > > >=20 > > > c23: tag compatibility rules for struct and unions > > >=20 > > > caused > > >=20 > > > FAIL: gcc.dg/gnu23-tag-4.c (test for excess errors) > > >=20 > > > with GCC configured with > > >=20 > > > ../../gcc/configure > > > --prefix=3D/export/users/haochenj/src/gcc-bisect/master/master/r14-67= 70/ > > > usr --enable-clocale=3Dgnu --with-system-zlib --with-demangler-in-ld > > > --with-fpmath=3Dsse --enable-languages=3Dc,c++,fortran --enable-cet > > > --without-isl --enable-libmpx x86_64-linux --disable-bootstrap > > >=20 > > > To reproduce: > > >=20 > > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg.exp=3Dgcc.dg/gn= u23- > > tag-4.c --target_board=3D'unix{-m32\ -march=3Dcascadelake}'" > > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg.exp=3Dgcc.dg/gn= u23- > > tag-4.c --target_board=3D'unix{-m64\ -march=3Dcascadelake}'" > > >=20 > > > (Please do not reply to this email, for question about this report, > > > contact me at haochen dot jiang at intel.com.) (If you met problems > > > with cascadelake related, disabling AVX512F in command line might sav= e > > that.) (However, please make sure that there is no potential problems w= ith > > AVX512.) >=20