diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2015-04-17 21:54:22 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2015-04-17 14:54:22 -0700 |
commit | 759fde68ea9800e959a5ba44075b304206fff92a (patch) | |
tree | c5eefaca09beccacb28d6d37588d776932d884a4 /gcc | |
parent | d6c2d7c1ca10991d6c8159325a69a5f0ba48b94f (diff) | |
download | gcc-759fde68ea9800e959a5ba44075b304206fff92a.zip gcc-759fde68ea9800e959a5ba44075b304206fff92a.tar.gz gcc-759fde68ea9800e959a5ba44075b304206fff92a.tar.bz2 |
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
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 e0a4cbf..99f2d08 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 Jeff Law <law@redhat.com> PR tree-optimization/47679 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 |