From: H.J. Lu Date: Fri, 17 Apr 2015 21:54:22 +0000 (+0000) Subject: Don't define ix86_binds_local_p for MacOS nor Windows X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=759fde68ea9800e959a5ba44075b304206fff92a;p=gcc.git Don't define ix86_binds_local_p for MacOS nor Windows PR target/65780 * config/i386/i386.c (ix86_binds_local_p): Define only if TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false. From-SVN: r222201 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0a4cbf3daf..99f2d087582 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-04-17 H.J. Lu + + PR target/65780 + * config/i386/i386.c (ix86_binds_local_p): Define only if + TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false. + 2015-04-17 Jeff Law PR tree-optimization/47679 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index da6918624af..d870ab81525 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