This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]