From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D92A2385B50C; Mon, 3 Jun 2024 10:36:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D92A2385B50C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717410990; bh=HvRchwJOIfY9MG6AHDUFBQtbR3LBlU+EmUmp8+sBSII=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NI2jFvakL3yV4JX60lp+GAF/Xtap8G7phu376+V+GcaArkfLsZCaWbQFVDKvazFhB HwzoJWcmxuXiuL7O1dKvRu01RlI0s13rQC/rFNDYnXt7ons1cz7W1FmKCGWiKhhU+R hl0Z05AWeUXF9YY0Fc4s0NQ6EuLFvOqKhpdoWfCM= From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115157] incorrect TBAA for derived types involving enum types Date: Mon, 03 Jun 2024 10:36:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.1.0 X-Bugzilla-Keywords: alias, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rearnsha at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115157 --- Comment #4 from Richard Earnshaw --- The tests in the last patch fail on arm-eabi. The tests assume that sizeof(enum) =3D=3D sizeof(int), which is not true if -fshort-enum is the d= efault. ++++++++++++++++++++++++++++++++++++++++++++++++ + Changes for ./gcc/testsuite/gcc/gcc.sum.sent + ++++++++++++++++++++++++++++++++++++++++++++++++ New tests that FAIL (6 tests): arm-qemu/-mthumb: gcc: gcc.dg/enum-alias-1.c (test for excess errors) arm-qemu/-mthumb: gcc: gcc.dg/enum-alias-2.c execution test arm-qemu/-mthumb: gcc: gcc.dg/enum-alias-3.c execution test=