From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF15D3858426; Fri, 6 Oct 2023 21:31:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF15D3858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696627871; bh=fbrAfdkbLmpCCJ1uBMTpA1dfJF8fZoiJdDFx12tFgx4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lRRw60bPxeOw5Qt+ygQhNBe4+9O1zDulGEYR1X7e0N86d0pl8fx7BSwuhWDgxEzeH +1aqkhr0JW3u5hTtxMV3CuAlYzEev5/I5Bj2EyDnqmeqIm7Kf9abG0yO96+pF3IaRC 1qOTFYTESKI4RTCWBdqnNP3Mw+mm3Oc+pZ0wJvDk= From: "lukas.graetz@tu-darmstadt.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/111643] __attribute__((flatten)) with -O1 runs out of memory (killed cc1) Date: Fri, 06 Oct 2023 21:31:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: lukas.graetz@tu-darmstadt.de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX 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=3D111643 --- Comment #11 from Lukas Gr=C3=A4tz --- (In reply to Alexander Monakov from comment #10) > (In reply to Lukas Gr=C3=A4tz from comment #9) > > I also wondered whether > >=20 > > int bar_alias (void) { return bar_original(); } > >=20 > > could be a portable alternative to attribute alias. Except that current= GCC > > does not translate it that way. >=20 > That's because function addresses are significant and so >=20 > &bar_alias =3D=3D &bar_original >=20 > must evaluate to false, but would be true for aliases. >=20 > In theory compilers could do better by introducing fall-through aliases: > https://gcc.gnu.org/wiki/ > cauldron2019talks?action=3DAttachFile&do=3Dview&target=3Dfallthrough-alia= ses.pdf Thanks a lot! I haven't thought about function addresses. Is there hope that fall-through aliases get into gcc? Then my perhaps my instrumentation fall-through would also be possible to implement.=