gcj/385: segfault when compiling class file

Alexandre Petit-Bianco apbianco@cygnus.com
Tue Feb 6 12:16:00 GMT 2001


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

From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: paul@dawa.demon.co.uk
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/385: segfault when compiling class file
Date: Tue, 6 Feb 2001 11:59:55 -0800 (PST)

 paul@dawa.demon.co.uk writes:
 
 > Compiling the attached class segfaults gcj
 
 We found some side problems with the code trying to handle the
 `Synthetic' attribute on fields. So the patch could have been this:
 
 Index: jcf-parse.c
 ===================================================================
 RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
 retrieving revision 1.75
 diff -u -p -r1.75 jcf-parse.c
 --- jcf-parse.c 2001/02/04 22:44:02     1.75
 +++ jcf-parse.c 2001/02/06 19:57:08
 @@ -227,7 +227,7 @@ set_source_filename (jcf, index)
    /* Irrelevant decls should have been nullified by the END macros. */ \
    if (current_method)                                                  \
      DECL_ARTIFICIAL (current_method) = 1;                              \
 -  else                                                                 \
 +  else if (current_field)                                              \
      DECL_ARTIFICIAL (current_field) = 1;                               \
  }
 
 But it really should be this:
 
   http://gcc.gnu.org/ml/java/2001-02/msg00053.html
 
 ./A


More information about the Java-prs mailing list