This is the mail archive of the gcc-prs@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]

Re: java/5365: gcjh -stubs does not include correct files


The following reply was made to PR java/5365; it has been noted by GNATS.

From: Tom Tromey <tromey@redhat.com>
To: nallen@freenet.co.uk
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/5365: gcjh -stubs does not include correct files
Date: 15 Jan 2002 17:39:27 -0700

 >>>>> "Nicholas" == nallen  <nallen@freenet.co.uk> writes:
 
 Nicholas> When gcjh -stubs is used the stubs file generates the wrong
 Nicholas> include statements. For example, if you use gcjh -stubs on
 Nicholas> java.lang.Object it generates a java/lang/Object.cc and a
 Nicholas> java/lang/Object.h file which includes the header file using
 Nicholas> #include <java.lang.Object.h>. The correct include should be
 Nicholas> #include <java/lang/Object.h>. It also does not include the
 Nicholas> gcj/cni.h file.
 
 I agree this is a bug.  I've written a fix which I'll check in
 shortly.
 
 When I generate the stub file I do see an include for <gcj/cni.h>.
 I was unable to reproduce this part of the PR.
 
 Nicholas> The stub functions also have JvFail in them and I can't find
 Nicholas> any references to this function in gcj/cni.h.
 
 I agree this is less than perfect.  However, I don't think we want to
 export this JvFail.  We could make each stub throw a new exception,
 but that would mean including some exception header file (which in
 theory users would not actually be using).  What do you think?
 
 Tom


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