Using -ffunction-sections and -p

Ian Lance Taylor iant@google.com
Mon Nov 5 05:03:00 GMT 2012


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



More information about the Gcc-patches mailing list