File pr33763.diff of Package gcc43

Index: gcc/tree-inline.c
===================================================================
*** gcc/tree-inline.c	(revision 130489)
--- gcc/tree-inline.c	(working copy)
*************** expand_call_inline (basic_block bb, tree
*** 2573,2578 ****
--- 2573,2584 ----
    if (!cgraph_inline_p (cg_edge, &reason))
      {
        if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn))
+ 	  /* For extern inline functions that get redefined we always
+ 	     silently ignored alway_inline flag.  Better behaviour would
+ 	     be to be able to keep both bodies and use extern inline body
+ 	     for inlining, but we can't do that because frontends overwrite
+ 	     the body.  */
+ 	  && !cg_edge->callee->local.redefined_extern_inline
  	  /* Avoid warnings during early inline pass. */
  	  && (!flag_unit_at_a_time || cgraph_global_info_ready))
  	{
openSUSE Build Service is sponsored by