re PR bootstrap/63536 (bootstrap failed when configured with --with-cpu=slm)

PR target/63536
gcc/java/
	* lang.c (java_print_error_function): Add check on NULL function
	context.

From-SVN: r216280
This commit is contained in:
Evgeny Stupachenko 2014-10-15 17:49:27 +00:00 committed by Ilya Verbin
parent a0272f8660
commit 1cbd117475
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2014-10-15 Evgeny Stupachenko <evstupac@gmail.com>
PR target/63536
* lang.c (java_print_error_function): Add check on NULL function
context.
2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
* class.c, decl.c, except.c, expr.c, java-tree.h, lang.c: Use

View File

@ -489,6 +489,7 @@ java_print_error_function (diagnostic_context *context ATTRIBUTE_UNUSED,
return;
if (current_function_decl != NULL
&& DECL_CONTEXT (current_function_decl) != NULL
&& DECL_CONTEXT (current_function_decl) != last_error_function_context)
{
if (file)