From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28210 invoked by alias); 6 May 2010 13:51:17 -0000 Received: (qmail 27759 invoked by alias); 6 May 2010 13:50:37 -0000 Date: Thu, 06 May 2010 13:51:00 -0000 Message-ID: <20100506135036.27758.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/43791] [4.6 Regression] 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: "hubicka at ucw dot cz" 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-05/txt/msg00579.txt.bz2 ------- Comment #28 from hubicka at ucw dot cz 2010-05-06 13:50 ------- Subject: Re: [4.6 Regression] kernel/rtmutex.c:1138:1: internal compiler error: in cgraph_decide_inlining_of_small_functions, at ipa-inline.c:1009 > > > ------- Comment #27 from justinmattock at gmail dot com 2010-05-06 13:44 ------- > (In reply to comment #24) > > (In reply to comment #23) > > > Justin, your comment 7 reminded me of my problem (unrelated to this bug report > > Should be comment 20. > > > > ah.. oh-well.. in any case though this error is funky i.g. > cgraph_decide_inlining_of_small_functions is kind of everywhere, > when messing with the CFLAGS flags like that.(one minuete over here, the next > over there). Well, it is a symptom of insane use of always_inline attribute (as seen in the testcase). The function is public yet marked always inline, so compiler really can't inline it everywhere no matter how hard it is trying. We are thinking about making this invalid in future relase of GCC. Always inline functions should be static and should not be used in scenarios we can not inline into. Honza -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43791