This is the mail archive of the java-prs@sourceware.cygnus.com mailing list for the Java project.


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

gcj/74: jc1 dumps core when compiling java/lang/Object.java



>Number:         74
>Category:       gcj
>Synopsis:       jc1 dumps core when compiling java/lang/Object.java
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 22 02:50:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Pekka Nikander
>Release:        2.95.1
>Organization:
>Environment:
FreeBSD 3.2 (cross compiling for Hitachi H8)
>Description:
jc1 dumps core, or with some variation, dies on a number
of internal compiler errors, when trying to compile
java.lang.Object that has fields.  Looking at the source
code in java/class.c and various other places, it looks
like that the compiler treats the parse tree for 
java.lang.Object, java.lang.Class and maybe other classes
in such a way that no new fields can be defined.  
Unfortunately I don't understand (yet) enough of the
source tree structure so that I could suggest any fixed;
however, I will be trying to look at this a little more.
>How-To-Repeat:
Compile the following program in a directory named
java/lang where it is the only source file:

package java.lang;
public class Object { int field; }

$ gcj -fclasspath=../.. -c Object.java
gcj: Internal compiler error: program jc1 got fatal signal 11
$ gdb /usr/local/......../jc1 jc1.core 
...
#0  tree_check (node=0x0, code=INTEGER_CST,
    file=0x8191dbb "/usr/ports/lang/egcs/work/gcc-2.95.1/gcc/java/class.c",
    line=890, nofatal=0)
    at /usr/ports/lang/egcs/work/gcc-2.95.1/gcc/tree.c:5084
5084      if (TREE_CODE (node) == code)                                      
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

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