public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "ktietz at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug libgcj/50053] [4.7 regression] jc1 doesn't emit static initializer or initializer code for super class without -findirect-dispatch.
Date: Fri, 09 Dec 2011 21:27:00 -0000	[thread overview]
Message-ID: <bug-50053-8172-cgEjWrLTW7@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-50053-8172@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-09
                 CC|                            |ktietz at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #11 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-12-09 21:27:02 UTC ---
Suggested patch for this issue (together with the pending patch for PR/51135
for C++) is:

Index: natClass.cc
===================================================================
--- natClass.cc (revision 182092)
+++ natClass.cc (working copy)
@@ -661,7 +661,7 @@
     throw new java::lang::InstantiationException (getName());

   jobject r = _Jv_AllocObject (this);
-  ((void (*) (jobject)) meth->ncode) (r);
+  ((void (__thiscall *) (jobject)) meth->ncode) (r);
   return r;
 }

It would be kind, if somebody could confirm that it fixes this issue.  I will
prepare then a final variant of this patch.


  parent reply	other threads:[~2011-12-09 21:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-12  7:58 [Bug libgcj/50053] New: [4.7 regression] SIGSEGV in natClass.cc:651 jojelino at gmail dot com
2011-08-12  8:28 ` [Bug libgcj/50053] " rguenth at gcc dot gnu.org
2011-08-12  8:29 ` rguenth at gcc dot gnu.org
2011-08-12  9:00 ` jojelino at gmail dot com
2011-08-12 11:45 ` jojelino at gmail dot com
2011-10-10 12:16 ` rguenth at gcc dot gnu.org
2011-10-22 19:33 ` jojelino at gmail dot com
2011-10-23 13:43 ` jojelino at gmail dot com
2011-12-08 19:13 ` [Bug libgcj/50053] [4.7 regression] jc1 doesn't emit static initializer or initializer code for super class without -findirect-dispatch jojelino at gmail dot com
2011-12-08 19:16 ` jojelino at gmail dot com
2011-12-09 21:27 ` ktietz at gcc dot gnu.org [this message]
2011-12-12 10:41 ` ktietz at gcc dot gnu.org
2011-12-12 10:42 ` ktietz at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-50053-8172-cgEjWrLTW7@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).