This is the mail archive of the
mailing list for the libstdc++ project.
Re: -ffunction-sections always on now?
>>>>> "Stan" == Stan Shebs <email@example.com> writes:
> Benjamin Kosnik wrote:
>> Hey stan, check out acinclude.m4
>> If gcc can use these flags without barfing, they are turned on. If you
>> want to add a bit more intelligence to this, please do (but for ELF, it
>> should remain as is...)
> If I understand the test correctly, it's just testing that the
> compiler accepts the option, not that the resulting executable
> works. That's possibly a bogosity in GCC, because I only turned
> on named sections to get Dwarf 2 sections of fixed names known
> to work with Mach-O, but that's taken to mean that the function
> section option works too, which doesn't really follow.
Sounds like we need another target macro.