This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Patch: another bug fix from Alex


I'm checking this in.  It is another gcj bug fix from Alex that is
required by my recent large patch to libgcj.

Thu Apr 27 17:25:33 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (block_end:): If the collected block doesn't feature a
 	statement, insert an empty statement.

Tom

Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.166
diff -u -r1.166 parse.y
--- parse.y	2000/05/19 16:17:20	1.166
+++ parse.y	2000/05/19 22:00:25
@@ -1326,6 +1326,8 @@
 		    DECL_END_SOURCE_LINE (current_function_decl) = 
 		      EXPR_WFL_ADD_COL ($1.location, 1);		  
 		  $$ = exit_block ();
+		  if (!BLOCK_SUBBLOCKS ($$))
+		    BLOCK_SUBBLOCKS ($$) = empty_stmt_node;
 		}
 ;
 

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