From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 080FA3857704; Fri, 6 Oct 2023 02:48:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 080FA3857704 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696560499; bh=iuP7dRusCRFMGRlEOt0b5x/ToMQzPkDwL+b/PWs1O6o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t12B468666DnRz+F/SD47JqL8FnFbztkQnwJ+rGqeKjI82ZEItUE+BUk/dW0dzQTM OXLUgCLf5qtqA0vCobxuNuTDTgnvWxWO4o8+8rdQoDMheBO5exuAk7EHBmJ6Fty38y xd8P/mojaOuyFygV4s09plT5RBskZuAgfF7W7CeQ= From: "hkzhang455 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/111672] Inappropriate function splitting during pass_split_functions Date: Fri, 06 Oct 2023 02:48:18 +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: 12.3.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: hkzhang455 at gmail dot com 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=3D111672 --- Comment #11 from Hanke Zhang --- (In reply to Andrew Pinski from comment #10) > The difference between the 2 is the costing of the __printf_chk/puts: > _FORTIFY_SOURCE case: > freq:0.20 size: 3 time:2.43 __printf_chk (1, "Object code generation n= ot > active! Forgot to call quantum_objcode_start?\n"); >=20 > vs without: > freq:0.20 size: 2 time:2.23 puts (&"Object code generation not active! > Forgot to call quantum_objcode_start?"[0]); But I have never seen this '_FORTIFY_SOURCE' before. So I'm a confused as w= ell. And when I try gcc@11.4 built in the default ubuntu 22.04, it's the same. S= o I don't know how to describe now. Thanks for your help anyway.=