aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPeter Bergner <bergner@vnet.ibm.com>2011-11-02 22:36:35 -0500
committerPeter Bergner <bergner@gcc.gnu.org>2011-11-02 22:36:35 -0500
commitd8c866e57c8fa49fa506f3dd2ff146aeab3c92a4 (patch)
tree49ff2fefa198bf614de1e0fa76ddfd1c23d25356 /gcc
parent9a32eabea0b264bb2c8b95292ea0a6aad1ccb2bd (diff)
downloadgcc-d8c866e57c8fa49fa506f3dd2ff146aeab3c92a4.zip
gcc-d8c866e57c8fa49fa506f3dd2ff146aeab3c92a4.tar.gz
gcc-d8c866e57c8fa49fa506f3dd2ff146aeab3c92a4.tar.bz2
rs6000.c (USE_HIDDEN_LINKONCE): New define.
* config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define. (get_ppc476_thunk_name): Use it. (rs6000_code_end): Likewise. (macho_branch_islands): Fix typo. Co-Authored-By: Iain Sandoe <iains@gcc.gnu.org> From-SVN: r180814
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/rs6000/rs6000.c12
2 files changed, 17 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8684060..4b349fa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2011-11-02 Peter Bergner <bergner@vnet.ibm.com>
+ Iain Sandoe <iains@gcc.gnu.org>
+
+ * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
+ (get_ppc476_thunk_name): Use it.
+ (rs6000_code_end): Likewise.
+ (macho_branch_islands): Fix typo.
+
2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
Jason Merrill <jason@redhat.com>
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 2430cdf..86fe859 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -25071,7 +25071,7 @@ macho_branch_islands (void)
if (TARGET_LINK_STACK)
{
char name[32];
- get_ppc64_thunk_name (name);
+ get_ppc476_thunk_name (name);
strcat (tmp_buf, ":\n\tmflr r0\n\tbl ");
strcat (tmp_buf, name);
strcat (tmp_buf, "\n");
@@ -27949,6 +27949,12 @@ rs6000_save_toc_in_prologue_p (void)
return (cfun && cfun->machine && cfun->machine->save_toc_in_prologue);
}
+#ifdef HAVE_GAS_HIDDEN
+# define USE_HIDDEN_LINKONCE 1
+#else
+# define USE_HIDDEN_LINKONCE 0
+#endif
+
/* Fills in the label name that should be used for a 476 link stack thunk. */
void
@@ -27956,7 +27962,7 @@ get_ppc476_thunk_name (char name[32])
{
gcc_assert (TARGET_LINK_STACK);
- if (HAVE_GAS_HIDDEN)
+ if (USE_HIDDEN_LINKONCE)
sprintf (name, "__ppc476.get_thunk");
else
ASM_GENERATE_INTERNAL_LABEL (name, "LPPC476_", 0);
@@ -27983,7 +27989,7 @@ rs6000_code_end (void)
TREE_PUBLIC (decl) = 1;
TREE_STATIC (decl) = 1;
- if (HAVE_GAS_HIDDEN)
+ if (USE_HIDDEN_LINKONCE)
{
DECL_COMDAT_GROUP (decl) = DECL_ASSEMBLER_NAME (decl);
targetm.asm_out.unique_section (decl, 0);