On 2007-03-27, Grant Edwards <[email protected]> wrote:
> When I use -ffunction-sections I get a warning:
>
> cc1: warning: -ffunction-sections may affect debugging on some targets
>
> I've been using -ffunction-sections for many years on many
> targets and I've never seen that warning before.
>
> Why do I get that warning on MSP430 and not other targets?
It appears to happen for msp430-gcc because it isn't used the
ELF object format. At least that's what gcc thinks. Here's the
code in toplev.c that generates the warning:
#ifndef OBJECT_FORMAT_ELF
if (flag_function_sections && write_symbols != NO_DEBUG)
warning ("-ffunction-sections may affect debugging on some targets");
#endif
Why is OBJECT_FORMAT_ELF not defined?
--
Grant Edwards grante Yow! Intra-mural sports
at results are filtering
visi.com through th' plumbing...