This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] tweak -ffunction-sections configure test
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Fri, 14 Mar 2008 22:57:06 -0400
- Subject: Re: [v3] tweak -ffunction-sections configure test
- References: <464C6EFF.9080606@redhat.com>
>>>>> Benjamin Kosnik writes:
> This adds -g to the compile line when testing -ffunction-sections, in
> the hopes that the results will be more accurate on AIX and cygwin, and
> reflect actual usage.
Ben,
If you are going to change the behavior of libstdc++ on AIX, it
would be considerate for you to ask me or at least alert me. The subject
line is not something that would attract my attention.
This patch broke -ffunction-sections support in libstdc++ on AIX.
This is a regression. "-g" causes G++ to emit a warning that
"-ffunction-sections may affect debugging" and "-Werror" causes the
warning becomes an error. This means that the -ffunction-sections
configure test now fails, disabling that option when building libstdc++.
The option should not be disabled -- it is a performance optimization on
AIX that functions correctly.
This now is PR libstdc++/35597. Please revert the -g change.
Thanks, David