On Wed, 2011-11-02 at 18:17 +0000, Iain Sandoe wrote: > also in macho_branch_islands () : > > if (TARGET_LINK_STACK) > { > char name[32]; > get_ppc64_thunk_name (name); > strcat (tmp_buf, ":\n\tmflr r0\n\tbl "); > strcat (tmp_buf, name); > strcat (tmp_buf, "\n"); > strcat (tmp_buf, label); > strcat (tmp_buf, "_pic:\n\tmflr r11\n"); > } > else > > which breaks bootstrap for darwin - I'm not sure why you have an entry > here (this is mach-o-specific code) > - I doubt there will ever be a mach-o implementation with a PPC476 - > but, in any case the call to get_ppc64_thunk_name needs wrapping > somehow.
How is it failing for you? And what are your configure options so I can try and recreate the error? If it's similar to what Alan saw but for get_ppc64_thunk_name, namely: rs6000.c:27968:1: error: 'void rs6000_code_end()' defined but not used [-Werror=unused-function] cc1plus: all warnings being treated as errors Does the following fix it for you? Index: config/rs6000/rs6000-protos.h =================================================================== --- config/rs6000/rs6000-protos.h (revision 180786) +++ config/rs6000/rs6000-protos.h (working copy) @@ -173,7 +173,7 @@ extern void rs6000_emit_eh_reg_restore ( extern const char * output_isel (rtx *); extern void rs6000_call_indirect_aix (rtx, rtx, rtx); extern void rs6000_aix_asm_output_dwarf_table_ref (char *); -extern void get_ppc476_thunk_name (char name[32]); +extern void get_ppc476_thunk_name (char name[32]) ATTRIBUTE_UNUSED; /* Declare functions in rs6000-c.c */ Peter