This is the mail archive of the gcc-patches@gcc.gnu.org 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: [GOOGLE] Make LIPO aux function removal consistent


Ping.
Teresa

On Fri, Dec 19, 2014 at 5:40 PM, Teresa Johnson <tejohnson@google.com> wrote:
> Passes regression tests, ok for google 4_9?
>
> Thanks,
> Teresa
>
> 2014-12-19  Teresa Johnson  <tejohnson@google.com>
>
>         Google ref b/18800499
>         * cgraph.c (cgraph_can_remove_if_no_direct_calls_and_refs_p): Make
>         consistent with mark_functions_for_output for LIPO aux functions.
>
> Index: cgraph.c
> ===================================================================
> --- cgraph.c    (revision 216977)
> +++ cgraph.c    (working copy)
> @@ -2464,6 +2464,8 @@ cgraph_can_remove_if_no_direct_calls_and_refs_p (s
>    /* Extern inlines can always go, we will use the external definition.  */
>    if (DECL_EXTERNAL (node->decl))
>      return true;
> +  if (cgraph_is_aux_decl_external (node))
> +    return true;
>    /* When function is needed, we can not remove it.  */
>    if (node->force_output || node->used_from_other_partition)
>      return false;
>
> --
> Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413



-- 
Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413


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