This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [GOOGLE] Make LIPO aux function removal consistent
- From: Teresa Johnson <tejohnson at google dot com>
- To: Xinliang David Li <davidxl at google dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 22 Dec 2014 16:57:47 -0800
- Subject: Re: [GOOGLE] Make LIPO aux function removal consistent
- Authentication-results: sourceware.org; auth=none
- References: <CAAe5K+U4E+daTKV9iyZNqA_DZ6J1xFf1ULKW8tXSfhMALbjmgA at mail dot gmail dot com>
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