https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70795

--- Comment #13 from dave.anglin at bell dot net ---
On 2017-02-05, at 1:12 PM, hubicka at gcc dot gnu.org wrote:

> I would aprechiate if someone could bootstrap&regtest this
> Index: cgraphunit.c
> ===================================================================
> --- cgraphunit.c        (revision 245196)
> +++ cgraphunit.c        (working copy)
> @@ -541,6 +541,8 @@ cgraph_node::add_new_function (tree fnde
>        node->local.local = false;
>        node->definition = true;
>        node->force_output = true;
> +       if (TREE_PUBLIC (fndecl))
> +         node->externally_visible = true;
>        if (!lowered && symtab->state == EXPANSION)
>          {
>            push_cfun (DECL_STRUCT_FUNCTION (fndecl));

Tested on hppa2.0w-hp-hpux11.11.  The patch fixes the ICE in the revised
testcase.  No regressions were observed in the testsuite.

Dave
--
John David Anglin       dave.ang...@bell.net

Reply via email to