-ffunction-sections always on now?

Jason Merrill jason_merrill@redhat.com
Tue Oct 2 07:44:00 GMT 2001


>>>>> "Stan" == Stan Shebs <shebs@apple.com> writes:

> Benjamin Kosnik wrote:
>> 
>> Hey stan, check out acinclude.m4
>> 
>> GLIBCPP_CHECK_COMPILER_FEATURES
>> 
>> 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.

Jason



More information about the Libstdc++ mailing list