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

--- Comment #2 from Stupachenko Evgeny <evstupac at gmail dot com> ---
"ebx enabling" changes triggered a warning for
"_Jv_global_static_constructor()".

The function has NULL location and CONTEXT.
The ICE caused by passing NULL to
 lang_printable_name:

  if (current_function_decl != NULL
      && DECL_CONTEXT (current_function_decl) != last_error_function_context)
    {
      if (file)
        fprintf (stderr, "%s: ", file);

      last_error_function_context = DECL_CONTEXT (current_function_decl);
      fprintf (stderr, "In class '%s':\n",
               lang_printable_name (last_error_function_context, 0));
    }

an additional check
  if (current_function_decl != NULL
      && DECL_CONTEXT (current_function_decl) != NULL
      && DECL_CONTEXT (current_function_decl) != last_error_function_context)

should resolve the problem.
Checking bootstrap now.

Reply via email to