From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28240 invoked by alias); 19 Apr 2010 20:48:37 -0000 Received: (qmail 28178 invoked by alias); 19 Apr 2010 20:48:24 -0000 Date: Mon, 19 Apr 2010 20:48:00 -0000 Message-ID: <20100419204824.28177.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/43791] kernel/rtmutex.c:1138:1: internal compiler error: in cgraph_decide_inlining_of_small_functions, at ipa-inline.c:1009 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "justinmattock at gmail dot com" 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 X-SW-Source: 2010-04/txt/msg01902.txt.bz2 ------- Comment #9 from justinmattock at gmail dot com 2010-04-19 20:48 ------- Subject: Re: kernel/rtmutex.c:1138:1: internal compiler error: in cgraph_decide_inlining_of_small_functions, at ipa-inline.c:1009 On 04/19/2010 01:25 PM, falk at debian dot org wrote: > ------- Comment #8 from falk at debian dot org 2010-04-19 20:25 ------- > Confirmed with current 4.6 on x86-64, here is a testcase: > > int owner(); > int clear(); > > static void fixup() { > clear(); > } > > inline __attribute__ ((always_inline)) > void slowtrylock(void) { > if (owner()) > fixup(); > } > > void fasttrylock(void (*slowfn)()) { > slowfn(); > } > > void trylock(void) { > fasttrylock(slowtrylock); > } > > adding: OPTIMIZE_INLINING [=y] gets me to compile, but doesn't solve the issue(just temporary). Also I'm getting lots of warning messages: warning: variable 'pao_tmp__' set but not used Justin P. Mattock -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43791