[Bug ipa/70795] [7 Regression] gcc/libjava/interpret.cc:1948:1: ICE: in binds_to_current_def_p, at symtab.c:2232

dave.anglin at bell dot net gcc-bugzilla@gcc.gnu.org
Tue Feb 7 23:23:00 GMT 2017


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.anglin@bell.net


More information about the Gcc-bugs mailing list