This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH x86, java, PR63536] Fix java bootstrap for -mtune=intel/slm
- From: Evgeny Stupachenko <evstupac at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, Jeff Law <law at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, aph at redhat dot com, per at bothner dot com
- Date: Wed, 15 Oct 2014 20:54:18 +0400
- Subject: [PATCH x86, java, PR63536] Fix java bootstrap for -mtune=intel/slm
- Authentication-results: sourceware.org; auth=none
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)