http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47000
--- Comment #10 from Jeff Garzik <jgarzik at pobox dot com> 2010-12-18 18:49:35 UTC --- (In reply to comment #8) > Can you try > > -- > diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c > index af1adf4..dd00de6 100644 > --- a/gcc/tree-inline.c > +++ b/gcc/tree-inline.c > @@ -3342,7 +3342,11 @@ estimate_num_insns (gimple stmt, eni_weights *weights) > if (POINTER_TYPE_P (funtype)) > funtype = TREE_TYPE (funtype); > > - if (decl && DECL_BUILT_IN_CLASS (decl) == BUILT_IN_MD) > + /* Do not special case builtins where we see the body. > + This just confuse inliner. */ > + if (!decl || cgraph_node (decl)->analyzed) > + ; > + else if (decl && DECL_BUILT_IN_CLASS (decl) == BUILT_IN_MD) > cost = weights->target_builtin_call_cost; > else > cost = weights->call_cost; > --- ICE appears when attempting to make with gcc 4.5.1 + your patch: /garz/gcc45/src/gcc-4.5.1.patch1/libgcc/config/libbid/bid128_fma.c:4460:1: internal compiler error: in estimate_function_body_sizes, at ipa-inline.c:1920 Please submit a full bug report,