diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c02d742d719..ba2531268ba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -37,6 +37,11 @@ * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Change type to match target.def . + PR target/47114 + * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): Add + ATTRIBUTE_UNUSED to declaration. + (rs6000_elf_asm_out_destructor): Likewise. + 2010-12-30 Mingjie Xing * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index f26e37e8cd1..30f8b75dc4c 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -938,8 +938,8 @@ static rtx rs6000_function_value (const_tree, const_tree, bool); static void rs6000_file_start (void); #if TARGET_ELF static int rs6000_elf_reloc_rw_mask (void); -static void rs6000_elf_asm_out_constructor (rtx, int); -static void rs6000_elf_asm_out_destructor (rtx, int); +static void rs6000_elf_asm_out_constructor (rtx, int) ATTRIBUTE_UNUSED; +static void rs6000_elf_asm_out_destructor (rtx, int) ATTRIBUTE_UNUSED; static void rs6000_elf_end_indicate_exec_stack (void) ATTRIBUTE_UNUSED; static void rs6000_elf_asm_init_sections (void); static section *rs6000_elf_select_rtx_section (enum machine_mode, rtx,