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]

Re: gcj/26


Synopsis: gcj produces wrong stack size in byte compiled classes

State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Thu Sep  9 14:17:41 1999
State-Changed-Why:
    Can you try this patch and see how it works for you? I'm
    having troubles building egcs/libgcj after the major update
    I did recently.
    
    Thu Sep  9 12:19:53 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
    
    	* jcf-write.c (generate_classfile): Fixed max_locals.
    
    Index: jcf-write.c
    ===================================================================
    RCS file: /cvs/egcs/egcs/gcc/java/jcf-write.c,v
    retrieving revision 1.34
    diff -u -p -r1.34 jcf-write.c
    --- jcf-write.c 1999/08/28 05:33:02     1.34
    +++ jcf-write.c 1999/09/09 21:15:09
    @@ -2875,7 +2875,7 @@ generate_classfile (clas, state)
                }
              PUT4 (i); /* attribute_length */
              PUT2 (state->code_SP_max);  /* max_stack */
    -         PUT2 (localvar_max);  /* max_locals */
    +         PUT2 (localvar_max == 1 ? 1 : locavar_max - 1);  /* max_locals */
              PUT4 (state->code_length);
     
              /* Emit the exception table. */
    

http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=java&pr=26

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