From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AEDDD385840E; Tue, 22 Nov 2022 22:47:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEDDD385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669157266; bh=7yl76jmGqBfxGLYQO2OstZbNQDAjW2osXafvbQmGxHA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yEEI8AIj8XfuH5nWweL9lCAOAK4yh36nlTZYIgRa64h26giAesBZMnq0Irf89cw8S hjvsoPzARxnxQacrbPOllaxZIor+IjRGAQdh6z4uazQIKoaNmiDDroG4tP+6F2GY6A OpiLFRwWVRmq++DfQtwnaVHrIwusIvVOlysa1BBk= From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107405] [13 Regression] enum change causing Linux kernel to fail to build due to Linux depending on old behavior Date: Tue, 22 Nov 2022 22:47:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D107405 --- Comment #19 from joseph at codesourcery dot com --- On Tue, 22 Nov 2022, macro at orcam dot me.uk via Gcc-bugs wrote: > Well, according to the assertion triggered `typeof (EM_MAX_SLOTS)' will > yield a data type of a different width depending on the compiler version. I don't think typeof(expression) should really be considered part of the=20 ABI. Technically, yes, someone could declare a variable in a header as=20 "extern typeof (EM_MAX_SLOTS) x;", and then the ABI for that variable=20 would change. What hasn't changed is the normal case - where the variable= =20 is declared as "extern enum whatever_the_tag_is x;" - the size of the enum= =20 type itself is the same as what it was before.=