public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH x86, java, PR63536] Fix java bootstrap for -mtune=intel/slm
@ 2014-10-15 16:57 Evgeny Stupachenko
  2014-10-15 16:58 ` Andrew Haley
  0 siblings, 1 reply; 4+ messages in thread
From: Evgeny Stupachenko @ 2014-10-15 16:57 UTC (permalink / raw)
  To: H.J. Lu, Jeff Law, GCC Patches, aph, per

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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH x86, java, PR63536] Fix java bootstrap for -mtune=intel/slm
  2014-10-15 16:57 [PATCH x86, java, PR63536] Fix java bootstrap for -mtune=intel/slm Evgeny Stupachenko
@ 2014-10-15 16:58 ` Andrew Haley
  2014-10-15 17:00   ` Jakub Jelinek
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Haley @ 2014-10-15 16:58 UTC (permalink / raw)
  To: Evgeny Stupachenko, H.J. Lu, Jeff Law, GCC Patches, per

On 10/15/2014 05:54 PM, Evgeny Stupachenko wrote:
> 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?

I guess so, but I don't understand how any function ends up with a null
DECL_CONTEXT.

Nontheless, this must go to java-patches@gcc.gnu.org

Andrew.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH x86, java, PR63536] Fix java bootstrap for -mtune=intel/slm
  2014-10-15 16:58 ` Andrew Haley
@ 2014-10-15 17:00   ` Jakub Jelinek
       [not found]     ` <CAOvf_xyotqg3w-nd8LJqswBvQWQnOgmC=jmq2cwFv3f6BMzTkw@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Jakub Jelinek @ 2014-10-15 17:00 UTC (permalink / raw)
  To: Andrew Haley; +Cc: Evgeny Stupachenko, H.J. Lu, Jeff Law, GCC Patches, per

On Wed, Oct 15, 2014 at 05:57:22PM +0100, Andrew Haley wrote:
> On 10/15/2014 05:54 PM, Evgeny Stupachenko wrote:
> > 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?
> 
> I guess so, but I don't understand how any function ends up with a null
> DECL_CONTEXT.

Yeah, I guess it would help if you would say what function it is exactly,
how it got created etc.  Artificial function?

> Nontheless, this must go to java-patches@gcc.gnu.org

Also, java/ prefix shouldn't be in the ChangeLog, gcc/java/ directory has
its own ChangeLog.

	Jakub

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH x86, java, PR63536] Fix java bootstrap for -mtune=intel/slm
       [not found]       ` <543EAD17.2090508@redhat.com>
@ 2014-10-15 18:01         ` Evgeny Stupachenko
  0 siblings, 0 replies; 4+ messages in thread
From: Evgeny Stupachenko @ 2014-10-15 18:01 UTC (permalink / raw)
  To: Andrew Haley, GCC Patches
  Cc: Jakub Jelinek, java-patches, H.J. Lu, Jeff Law, per

Committed to trunk.

Author: iverbin
Date: Wed Oct 15 17:49:27 2014
New Revision: 216280

URL: https://gcc.gnu.org/viewcvs?rev=216280&root=gcc&view=rev
Log:
PR target/63536
gcc/java/
* lang.c (java_print_error_function): Add check on NULL function
context.


Modified:
    trunk/gcc/java/ChangeLog
    trunk/gcc/java/lang.c

On Wed, Oct 15, 2014 at 9:21 PM, Andrew Haley <aph@redhat.com> wrote:
> On 10/15/2014 06:12 PM, Evgeny Stupachenko wrote:
>> Updated ChangeLog:
>>
>> 2014-10-15  Evgeny Stupachenko  <evstupac@gmail.com>
>>
>>         PR target/63536
>>         * lang.c (java_print_error_function): Add check on NULL function
>>         context.
>>
>> The function is: _Jv_global_static_constructor()
>> It is compiler generated at jcf-parse.c
>> (java_emit_static_constructor), line 1705.
>
> Yes, okay.  It is an artificial function.
>
> Andrew.
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-15 17:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-15 16:57 [PATCH x86, java, PR63536] Fix java bootstrap for -mtune=intel/slm Evgeny Stupachenko
2014-10-15 16:58 ` Andrew Haley
2014-10-15 17:00   ` Jakub Jelinek
     [not found]     ` <CAOvf_xyotqg3w-nd8LJqswBvQWQnOgmC=jmq2cwFv3f6BMzTkw@mail.gmail.com>
     [not found]       ` <543EAD17.2090508@redhat.com>
2014-10-15 18:01         ` Evgeny Stupachenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).