From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26755 invoked by alias); 20 Dec 2007 01:25:27 -0000 Received: (qmail 26734 invoked by uid 22791); 20 Dec 2007 01:25:26 -0000 X-Spam-Check-By: sourceware.org Received: from an-out-0708.google.com (HELO an-out-0708.google.com) (209.85.132.242) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 20 Dec 2007 01:25:22 +0000 Received: by an-out-0708.google.com with SMTP id c3so853023ana.104 for ; Wed, 19 Dec 2007 17:25:20 -0800 (PST) Received: by 10.100.206.11 with SMTP id d11mr21776140ang.88.1198113920454; Wed, 19 Dec 2007 17:25:20 -0800 (PST) Received: by 10.100.139.11 with HTTP; Wed, 19 Dec 2007 17:25:20 -0800 (PST) Message-ID: <7f45d9390712191725k74bf0fc0w77bb3eae735e6b10@mail.gmail.com> Date: Thu, 20 Dec 2007 01:29:00 -0000 From: "Shaun Jackman" Reply-To: "Shaun Jackman" To: gcc@gcc.gnu.org Subject: Disabling the heuristic inliner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00609.txt.bz2 Is it possible to disable the heuristic inline function logic? I would like to select the following behaviour: * all static inline functions are always inlined * all static functions that are called once are inlined (-finline-functions-called-once) * no other functions are inlined I'm using -Os and I'm trying to find the right combination of -f switches to enable this behaviour. I tried -finline-limit=1 -finline-functions-called-once but it caused static inline functions to not be inlined. Thanks, Shaun