java/1479: Internal compiler error

joerg.brunsmann@fernuni-hagen.de joerg.brunsmann@fernuni-hagen.de
Wed Dec 20 12:29:00 GMT 2000


>Number:         1479
>Category:       java
>Synopsis:       Internal compiler error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:20:38 PST 2000
>Closed-Date:    Wed Dec 01 05:17:22 PST 1999
>Last-Modified:  Wed Dec  1 05:20:00 PST 1999
>Originator:     joerg.brunsmann@fernuni-hagen.de
>Release:        gcc version 2.96 19991102 (experimental)
>Organization:
>Environment:
SPARC/Solaris 2.7
>Description:
Access to the length attribute via method call gives:

gcj: Internal compiler error: program jc1 got fatal signal 11

>How-To-Repeat:
public class Test {

  public static void main(String [] args) {
    int i = args.length();
  }

}

compile with:

gcj --main=Test -o Test Test.java

This is ok:

public class Test {

  public static void main(String [] args) {
    int i = args.length;
  }

}


>Fix:

>Release-Note:

>Audit-Trail:

Formerly PR gcj/97

State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Thu Nov 11 02:02:28 1999
State-Changed-Why:
    A patch has been sent.

From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: joerg.brunsmann@fernuni-hagen.de, java-gnats@sourceware.cygnus.com
Cc:  
Subject: Re: gcj/97: Internal compiler error
Date: Thu, 11 Nov 1999 02:00:26 -0800 (PST)

 joerg.brunsmann@fernuni-hagen.de writes:
 
 > Access to the length attribute via method call gives:
 
 Oops. How about this patch?
 
 ./A
 
 Thu Nov 11 01:57:14 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
 	* parse.y (lookup_method_invoke): Use lang_printable_name to build
 	the type name during error report.
 
 Index: parse.y
 ===================================================================
 RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
 retrieving revision 1.118
 diff -u -p -r1.118 parse.y
 --- parse.y     1999/11/09 20:30:57     1.118
 +++ parse.y     1999/11/11 09:56:20
 @@ -7549,6 +7549,7 @@ lookup_method_invoke (lc, cl, class, nam
    tree atl = end_params_node;          /* Arg Type List */
    tree method, signature, list, node;
    const char *candidates;              /* Used for error report */
 +  char *dup;
  
    /* Fix the arguments */
    for (node = arg_list; node; node = TREE_CHAIN (node))
 @@ -7598,14 +7599,13 @@ lookup_method_invoke (lc, cl, class, nam
    method = make_node (FUNCTION_TYPE);
    TYPE_ARG_TYPES (method) = atl;
    signature = build_java_argument_signature (method);
 -  parse_error_context (cl, "Can't find %s `%s(%s)' in class `%s'%s",
 +  dup = strdup (lang_printable_name (class, 0));
 +  parse_error_context (cl, "Can't find %s `%s(%s)' in type `%s'%s",
                        (lc ? "constructor" : "method"),
 -                      (lc ? 
 -                       IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (class))) :
 -                       IDENTIFIER_POINTER (name)),
 -                      IDENTIFIER_POINTER (signature),
 -                      IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (class))),
 +                      (lc ? dup : IDENTIFIER_POINTER (name)),
 +                      IDENTIFIER_POINTER (signature), dup,
                        (candidates ? candidates : ""));
 +  free (dup);
    return NULL_TREE;
  }

From: apbianco@cygnus.com
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com,
  joerg.brunsmann@fernuni-hagen.de
Cc:  
Subject: Re: gcj/97
Date: 11 Nov 1999 10:02:28 -0000

 Synopsis: Internal compiler error
 
 State-Changed-From-To: open->feedback
 State-Changed-By: apbianco
 State-Changed-When: Thu Nov 11 02:02:28 1999
 State-Changed-Why:
     A patch has been sent.
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=java&pr=97
State-Changed-From-To: feedback->closed
State-Changed-By: apbianco
State-Changed-When: Wed Dec  1 05:17:22 1999
State-Changed-Why:
    A patch has been checked in:
    
      http://egcs.cygnus.com/ml/gcc-patches/1999-12/msg00017.html

From: apbianco@cygnus.com
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com,
  joerg.brunsmann@fernuni-hagen.de
Cc:  
Subject: Re: gcj/97
Date: 1 Dec 1999 13:17:22 -0000

 Synopsis: Internal compiler error
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: apbianco
 State-Changed-When: Wed Dec  1 05:17:22 1999
 State-Changed-Why:
     A patch has been checked in:
     
       http://egcs.cygnus.com/ml/gcc-patches/1999-12/msg00017.html
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=97&database=java
>Unformatted:
 



More information about the Gcc-prs mailing list