From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B79FC3857C4F; Mon, 19 Oct 2020 15:11:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B79FC3857C4F From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined Date: Mon, 19 Oct 2020 15:11: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: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2020 15:11:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97445 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org, | |rguenth at gcc dot gnu.org --- Comment #16 from Martin Li=C5=A1ka --- The following happens: get_order is called by kmalloc_large which is called in kmalloc. And kmalloc calls the function for larger allocations. Problem is that we eliminate all calls to get_order late pipe.i.108t.thread1:;; Function get_order (get_order, funcdef_no=3D295, decl_uid=3D4528, cgraph_uid=3D300, symbol_order=3D303) pipe.i.108t.thread1:get_order (long unsigned int size) pipe.i.108t.thread1: _125 =3D get_order (_114); pipe.i.108t.thread1: _67 =3D get_order (_56); pipe.i.109t.cdce:;; Function get_order (get_order, funcdef_no=3D295, decl_uid=3D4396, cgraph_uid=3D300, symbol_order=3D303) pipe.i.109t.cdce:get_order (long unsigned int size) so remove_unreachable_nodes is not called any more.=