On Fri, Apr 17, 2015 at 02:38:01PM -0700, H.J. Lu wrote: > Please add PR target/65780 line to the ChangeLog entry. Ok for trunk and 5 branch with that change, thanks.
> * config/i386/i386.c (ix86_binds_local_p): Define only if > TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false. > diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c > index da69186..d870ab8 100644 > --- a/gcc/config/i386/i386.c > +++ b/gcc/config/i386/i386.c > @@ -51737,6 +51737,7 @@ ix86_initialize_bounds (tree var, tree lb, tree ub, > tree *stmts) > return 2; > } > > +#if !TARGET_MACHO && !TARGET_DLLIMPORT_DECL_ATTRIBUTES > /* For i386, common symbol is local only for non-PIE binaries. For > x86-64, common symbol is local only for non-PIE binaries or linker > supports copy reloc in PIE binaries. */ > @@ -51749,6 +51750,7 @@ ix86_binds_local_p (const_tree exp) > || (TARGET_64BIT > && HAVE_LD_PIE_COPYRELOC != 0))); > } > +#endif > > /* Initialize the GCC target structure. */ > #undef TARGET_RETURN_IN_MEMORY Jakub