This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using -ffunction-sections and -p

On Wed, Nov 14, 2012 at 10:58 AM, Sriraman Tallam <> wrote:
> On Sun, Nov 4, 2012 at 9:03 PM, Ian Lance Taylor <> wrote:
>> On Sun, Nov 4, 2012 at 8:04 PM, Sriraman Tallam <> 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:
>>> 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?
> Is it reasonable to gate this using a target hook and start allowing
> this on selected targets? For instance, i386 does not seem to have a
> problem with this.

At this point I don't know that any target at all has a problem with this.

Given that nobody has stepped forward to test it, let's just remove
the code and see if anybody complains.  I'll approve the patch unless
somebody objects in the next 24 hours.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]