This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using -ffunction-sections and -p
- From: Ian Lance Taylor <iant at google dot com>
- To: Sriraman Tallam <tmsriram at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, David Li <davidxl at google dot com>, gcc at gcc dot gnu dot org
- Date: Sun, 4 Nov 2012 21:03:42 -0800
- Subject: Re: Using -ffunction-sections and -p
- References: <CAAs8HmxNf-V7AuTRPKtK7du73hKQ--0=9fW4tVk3LoLFioE4pg@mail.gmail.com>
On Sun, Nov 4, 2012 at 8:04 PM, Sriraman Tallam <tmsriram@google.com> wrote:
>
> Currently, using -ffunction-sections and -p together results in a
> warning. I ran into this problem when compiling the kernel. This is
> discussed in this thread:
>
> http://gcc.gnu.org/ml/gcc-help/2008-11/msg00128.html
>
> Ian's reply suggests this warning is no longer necessary and can be
> removed. Is this patch alright to commit with all tests passing:
>
> * toplev.c (process_options): Do not warn when -ffunction-sections
> and -fprofile are used together.
In that thread Jeff suggested that this be tested on Solaris and PA.
I don't know how to test on PA, but could somebody test the patch on
Solaris?
Ian