On 2 Nov 2011, at 19:05, Peter Bergner wrote:
On Wed, 2011-11-02 at 18:52 +0000, Iain Sandoe wrote:
I'll investigate a bit further later...
So you didn't start your build from scratch? I'll keep my
fingers crossed that a fresh build fixing things for you.
Otherwise, let me know what you find.
NO - it was a clean bootstrap ....
$ grep get_ppc64_thunk_name gcc/config/rs6000/*
gcc/config/rs6000/rs6000.c: get_ppc64_thunk_name (name);
I'm going to try this ....
$ svn diff -x -p gcc/config/rs6000/rs6000.c
Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c (revision 180788)
+++ gcc/config/rs6000/rs6000.c (working copy)
@@ -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");
@@ -27956,10 +27956,11 @@ get_ppc476_thunk_name (char name[32])
{
gcc_assert (TARGET_LINK_STACK);
- if (HAVE_GAS_HIDDEN)
+#if defined(HAVE_GAS_HIDDEN)
sprintf (name, "__ppc476.get_thunk");
- else
+#else
ASM_GENERATE_INTERNAL_LABEL (name, "LPPC476_", 0);
+#endif
}
/* This function emits the simple thunk routine that is used to
preserve
@@ -27983,7 +27984,7 @@ rs6000_code_end (void)
TREE_PUBLIC (decl) = 1;
TREE_STATIC (decl) = 1;
- if (HAVE_GAS_HIDDEN)
+#if defined(HAVE_GAS_HIDDEN)
{
DECL_COMDAT_GROUP (decl) = DECL_ASSEMBLER_NAME (decl);
targetm.asm_out.unique_section (decl, 0);
@@ -27994,11 +27995,12 @@ rs6000_code_end (void)
targetm.asm_out.assemble_visibility (decl, VISIBILITY_HIDDEN);
ASM_DECLARE_FUNCTION_NAME (asm_out_file, name, decl);
}
- else
+#else
{
switch_to_section (text_section);
ASM_OUTPUT_LABEL (asm_out_file, name);
}
+#endif
DECL_INITIAL (decl) = make_node (BLOCK);
current_function_decl = decl;
====
cheers
Iain