diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-17 21:55:05 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-17 21:55:05 +0000 |
commit | 03e94338e64b937d38ec03a4187d9c5eac1d1593 (patch) | |
tree | 45c6b6fefa2931655fe3ea0e221164936688a658 /gcc | |
parent | 174cc735af2b78778ec390bb0a1ea7b86bead302 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 50525327ea9..0ed5ed3d3cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-04-17 H.J. Lu <hongjiu.lu@intel.com> + + 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 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/65787 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 |