The preprocessor token "OBJECT_FORMAT_ELF" is incorrectly not defined for the AVR target (AVR-GCC). The AVR target uses the ELF object format, thus this token should be defined.
Without the token, specifying the valid "-ffunction-sections" compiler switch causes AVR-GCC to incorrectly give the warning "-ffunction-sections may affect debugging on some targets". -- Summary: OBJECT_FORMAT_ELF not defined for the AVR target Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dean_camera at hotmail dot com GCC build triplet: 4.1.1 GCC host triplet: AVR GCC target triplet: N/A http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29449