From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24684 invoked by alias); 16 Jul 2014 16:40:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24073 invoked by uid 48); 16 Jul 2014 16:40:43 -0000 From: "daniel.santos at pobox dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/61782] always_inline incorrectly documented Date: Wed, 16 Jul 2014 16:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Version: 4.8.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.santos at pobox dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg01165.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61782 --- Comment #10 from Daniel Santos --- (In reply to rguenther@suse.de from comment #7) > Heh - I've been there as well and guess what - I invented > __attribute__((flatten)) because of this... > > Note that flatten has the same issues as always_inline with respect > to indirect function calls (or virtual method calls, which are > indirect calls). > > > Portions of these functions (often the majority) I expect to be executed by the > > compiler and the result emitted, rather than having the whole of the function > > emitted as generated code. As the complexity of such functions grows, the cost > > of failing to inline by indirection can be the explosion of the function to 10, > > 20 times or more of it's size when all inlining happens. (sorry, that's a > > little off topic). > > Yeah, similar catastrophic things happened in the past with > profile-feedback where instrumentation was applied _before_ all > inlining... (I changed that as well). Hah! That makes you my hero then! I haven't learned the internals of gcc yet, so I still have to rely on others for this fringe stuff. Thanks again everybody.