http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47091
Summary: arm-netbsd fails to build Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: amyl...@gcc.gnu.org Blocks: 44756 Host: x86_64-pc-linux-gnu Target: arm-netbsd ../../../gcc/gcc/config/arm/arm.c:16888:1: error: ‘arm_elf_asm_constructor’ defined but not used [-Werror=unused-function] ../../../gcc/gcc/config/arm/arm.c:16896:1: error: ‘arm_elf_asm_destructor’ defined but not used [-Werror=unused-function] cc1: all warnings being treated as errors The offending functions have ATTRIBUTE_UNUSED prototypes in arm.c, but these prototypes are inside an #ifdef OBJECT_FORMAT_ELF block. Either these prototypes have to be made unconditional, or the function definitions have to be made likewise conditional.