public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/5088: Can't create a java.lang.Object from CNI
@ 2001-12-16 14:54 tromey
0 siblings, 0 replies; 4+ messages in thread
From: tromey @ 2001-12-16 14:54 UTC (permalink / raw)
To: bryce, gcc-bugs, gcc-prs, java-prs, tromey
Synopsis: Can't create a java.lang.Object from CNI
State-Changed-From-To: analyzed->closed
State-Changed-By: tromey
State-Changed-When: Sun Dec 16 14:54:05 2001
State-Changed-Why:
I've checked in the patch.
I'm closing this since it works on your test case.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5088
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: java/5088: Can't create a java.lang.Object from CNI
@ 2001-12-16 14:25 tromey
0 siblings, 0 replies; 4+ messages in thread
From: tromey @ 2001-12-16 14:25 UTC (permalink / raw)
To: bryce, gcc-bugs, gcc-prs, java-prs, nobody, tromey
Synopsis: Can't create a java.lang.Object from CNI
Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Sun Dec 16 14:25:01 2001
Responsible-Changed-Why:
I'm handling this.
State-Changed-From-To: open->analyzed
State-Changed-By: tromey
State-Changed-When: Sun Dec 16 14:25:01 2001
State-Changed-Why:
I've submitted a patch:
http://gcc.gnu.org/ml/java-patches/2001-q4/msg00444.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5088
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: java/5088: Can't create a java.lang.Object from CNI
@ 2001-12-15 16:46 Tom Tromey
0 siblings, 0 replies; 4+ messages in thread
From: Tom Tromey @ 2001-12-15 16:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR java/5088; it has been noted by GNATS.
From: Tom Tromey <tromey@redhat.com>
To: bryce@waitaki.otago.ac.nz
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/5088: Can't create a java.lang.Object from CNI
Date: 15 Dec 2001 17:48:31 -0700
>>>>> "Bryce" == bryce <bryce@waitaki.otago.ac.nz> writes:
Bryce> According to the C++ ABI spec:
Bryce> <ctor-dtor-name> ::= C1 # complete object (in-charge) constructor
Bryce> ::= C2 # base object (not-in-charge) constructor
gcc/java/mangle.c:mangle_method_decl() explicitly chooses `C2' here.
However, based on my reading of the ABI spec, I think that this is
incorrect, and that we should use `C1' everywhere.
I'm testing a patch now.
Tom
^ permalink raw reply [flat|nested] 4+ messages in thread
* java/5088: Can't create a java.lang.Object from CNI
@ 2001-12-11 22:46 bryce
0 siblings, 0 replies; 4+ messages in thread
From: bryce @ 2001-12-11 22:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 5088
>Category: java
>Synopsis: Can't create a java.lang.Object from CNI
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 11 22:46:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Bryce
>Release: gcc version 3.1 20011207 (experimental)
>Organization:
>Environment:
>Description:
The test case below does not link.
$ gcc InvokeCNI.cc -lgcj
/tmp/ccoD0wXw.o: In function `main':
/tmp/ccoD0wXw.o(.text+0x48): undefined reference to `java::lang::Object::Object()'
collect2: ld returned 1 exit status
$ nm InvokeCNI.o | grep ObjectC
U _ZN4java4lang6ObjectC1Ev
$ nm ~/cvs/gcc/build/i686-pc-linux-gnu/libjava/java/lang/Object.o | grep ObjectC
00000030 T _ZN4java4lang6ObjectC2Ev
According to the C++ ABI spec:
<ctor-dtor-name> ::= C1 # complete object (in-charge) constructor
::= C2 # base object (not-in-charge) constructor
>How-To-Repeat:
#include <gcj/cni.h>
#include <java/lang/Object.h>
int main(int argc, char *argv)
{
using namespace java::lang;
_Jv_CreateJavaVM (NULL);
_Jv_AttachCurrentThread (NULL, NULL);
new java::lang::Object ();
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-12-16 22:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-16 14:54 java/5088: Can't create a java.lang.Object from CNI tromey
-- strict thread matches above, loose matches on Subject: below --
2001-12-16 14:25 tromey
2001-12-15 16:46 Tom Tromey
2001-12-11 22:46 bryce
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).