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/46


Synopsis: Static inializers compiled incorrectly

State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Thu Sep 16 15:44:30 1999
State-Changed-Why:
    This patch helps. I haven't tried to recompile the runtime
    with it, though.
    
    Thu Sep 16 15:42:39 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
    
    	* parse.y (java_method_add_stmt): Test on null fndecl (which
     	defaults to using current_static_block through GET_CURRENT_BLOCK)
     	removed.
    Index: parse.y
    ===================================================================
    RCS file: /cvs/egcs/egcs/gcc/java/parse.y,v
    retrieving revision 1.109
    diff -u -p -r1.109 parse.y
    --- parse.y     1999/09/12 03:20:31     1.109
    +++ parse.y     1999/09/16 22:40:07
    @@ -5841,8 +5841,6 @@ tree
     java_method_add_stmt (fndecl, expr)
          tree fndecl, expr;
     {
    -  if (!fndecl)
    -    return NULL;
       return add_stmt_to_block (GET_CURRENT_BLOCK (fndecl), NULL_TREE, expr);
     }
     
    
    

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

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