summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-17 21:55:05 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-17 21:55:05 +0000
commit03e94338e64b937d38ec03a4187d9c5eac1d1593 (patch)
tree45c6b6fefa2931655fe3ea0e221164936688a658 /gcc/config/i386
parent174cc735af2b78778ec390bb0a1ea7b86bead302 (diff)
downloadgcc-03e94338e64b937d38ec03a4187d9c5eac1d1593.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@222202 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/i386.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index bca3ec62e26..d6c2de81982 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -51801,6 +51801,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. */
@@ -51813,6 +51814,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