libgcj/93

Alexandre Petit-Bianco apbianco@cygnus.com
Fri Apr 21 10:16:00 GMT 2000


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

From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: java-gnats@sourceware.cygnus.com
Cc:  
Subject: Re: libgcj/93
Date: Fri, 21 Apr 2000 10:00:43 -0700 (PDT)

 tromey@cygnus.com writes:
 
 >      Hi Jeff.  Could you take another look at this PR?  Bryce
 >      imported the latest Boehm GC, which includes an important GC
 >      bug fix for the alpha.  It is possible that this problem was
 >      caused by that bug.  If it still fails for you with the new GC,
 >      tell me and I will reopen this PR.
 
 I'm also guessing that (initialized upon declaration) arrays with 2+
 dimensions aren't really working. This patch might help.
 
 ./A
 
 2000-04-05  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
 	* class.c (build_java_array_type): `data' to always use pointer
 	alignment.
 
 Index: typeck.c
 ===================================================================
 RCS file: /cvs/cvsfiles/devo/gcc/java/typeck.c,v
 retrieving revision 1.51
 diff -u -p -r1.51 typeck.c
 --- typeck.c    2000/03/13 19:42:33     1.51
 +++ typeck.c    2000/04/06 01:44:57
 @@ -417,6 +417,7 @@ build_java_array_type (element_type, len
      {
        tree atype = build_prim_array_type (element_type, length);
        tree arfld = build_decl (FIELD_DECL, get_identifier ("data"), atype);
 +      TYPE_ALIGN (atype) = TYPE_ALIGN (ptr_type_node);
        DECL_CONTEXT (arfld) = t;
        TREE_CHAIN (fld) = arfld;
 


More information about the Java-prs mailing list