This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH x86, java, PR63536] Fix java bootstrap for -mtune=intel/slm


Hi,

The patch fixes java i686 bootstrap for -mtune=intel/slm.

Recent changes triggered java to write a note on compilation for a
function without context.

make check in progress

Is it ok?

ChangeLog:

2014-10-15  Evgeny Stupachenko  <evstupac@gmail.com>

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

diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index 7f0b09d..b64e4ea 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]