From: Evgeny Stupachenko Date: Wed, 15 Oct 2014 17:49:27 +0000 (+0000) Subject: re PR bootstrap/63536 (bootstrap failed when configured with --with-cpu=slm) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cbd117475aadccc2e29b4de26aea893bbfe8aa8;p=gcc.git 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 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index c9336d341e9..5b1e588cd61 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +2014-10-15 Evgeny Stupachenko + + PR target/63536 + * lang.c (java_print_error_function): Add check on NULL function + context. + 2014-10-12 Trevor Saunders * class.c, decl.c, except.c, expr.c, java-tree.h, lang.c: Use diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 7f0b09de392..b64e4eaba06 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -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)