------- Comment #8 from hjl dot tools at gmail dot com 2009-01-29 01:46 ------- This patch:
--- Index: varasm.c =================================================================== --- varasm.c (revision 5094) +++ varasm.c (working copy) @@ -6321,6 +6321,11 @@ default_binds_local_p_1 (const_tree exp, && (DECL_INITIAL (exp) == NULL || DECL_INITIAL (exp) == error_mark_node)) local_p = false; + /* Functions marked inline without body are not local. */ + else if (TREE_CODE (exp) == FUNCTION_DECL + && DECL_DECLARED_INLINE_P (exp) + && DECL_INITIAL (exp) == NULL) + local_p = false; /* Otherwise we're left with initialized (or non-common) global data which is of necessity defined locally. */ else --- works for me -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013