re PR bootstrap/63536 (bootstrap failed when configured with --with-cpu=slm)
authorEvgeny Stupachenko <evstupac@gmail.com>
Wed, 15 Oct 2014 17:49:27 +0000 (17:49 +0000)
committerIlya Verbin <iverbin@gcc.gnu.org>
Wed, 15 Oct 2014 17:49:27 +0000 (17:49 +0000)
PR target/63536
gcc/java/
* lang.c (java_print_error_function): Add check on NULL function
context.

From-SVN: r216280

gcc/java/ChangeLog
gcc/java/lang.c

index c9336d341e9cac9db27be049e27678ca9f55d5ac..5b1e588cd6123dc5904783cd33b8dc8b89fda09a 100644 (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
index 7f0b09de3922289236da2615517d099f3b2a23c8..b64e4eaba06332ff63bd37a6c2b54e5c87a29c88 100644 (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)