From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 05D633857835; Fri, 6 Oct 2023 21:40:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05D633857835 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696628454; bh=2qQMZD91Hw2jaTrAJdv1TQL8LYr4bLjmYq0DJnzd0G0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xo/ea0fNSbVzLu8JS/ukczWvn3uA4CiUGzqOtljYnNy4hCsMH9Hae27uILZ+94P1J h6tyH4RdxRuU8ixSG3E50HL0bf2lzkL5S16JCZMQ0Gi6Cl2eolro3LQmfLf6p1Xl1y cs6J0JSxB+6URu6CKE5hxcZ9i/E/W6YhuumgCycc= From: "pinskia at gcc dot gnu.org" 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:40:53 +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: pinskia at gcc dot gnu.org 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 #13 from Andrew Pinski --- (In reply to Andrew Pinski from comment #12) > Gcc does have tail call optimization which should allow the instrumentati= on > with less overhead. Though tail call optimization happens at -O2 and above > only (by default). The only improvement to this would be fall through alias which allows the removal of the jump to the other function. A direct non-conditional jump is usually predictable so the overhead should be small still.=