Message ID | CAAs8Hmzb8qAkuEwaxeBgAq2HsPrTuCpxz3oEvUwQ29x6nC3nKQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
On 12/07/2012 03:46 PM, Sriraman Tallam wrote: > I have submitted this patch. > > * toplev.c (process_options): Do not warn when -ffunction-sections > and -fprofile are used together. Approved. Please install. jeff
Index: gcc/toplev.c =================================================================== --- gcc/toplev.c (revision 194306) +++ gcc/toplev.c (working copy) @@ -1478,12 +1478,6 @@ process_options (void) } } - if (flag_function_sections && profile_flag) - { - warning (0, "-ffunction-sections disabled; it makes profiling impossible"); - flag_function_sections = 0; - } - #ifndef HAVE_prefetch if (flag_prefetch_loop_arrays > 0)