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]
Other format: [Raw text]

Fix Java bootstrap error


The following change

  2005-05-15  Tom Tromey  <tromey@redhat.com>

        PR java/21519:
        * jcf-write.c (generate_bytecode_insns) <SAVE_EXPR>: Don't call
        NOTE_PUSH.

breaks the bootstrap:

  cc1: warnings being treated as errors
  /cvs/gcc/java/jcf-write.c: In function 'generate_bytecode_insns':
  /cvs/gcc/java/jcf-write.c:2236: warning: unused variable 'type'

I'll commit the following as obvious one my current bootstrap has passed
the critical point.

Gerald


2005-05-15  Gerald Pfeifer  <gerald@pfeifer.com>

	* jcf-write.c (generate_bytecode_insns) <SAVE_EXPR>: Remove
	unused variable.

Index: jcf-write.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-write.c,v
retrieving revision 1.163
diff -u -3 -p -r1.163 jcf-write.c
--- jcf-write.c	15 May 2005 18:28:18 -0000	1.163
+++ jcf-write.c	15 May 2005 19:37:37 -0000
@@ -2233,7 +2233,6 @@ generate_bytecode_insns (tree exp, int t
 	}
       else
 	{
-	  tree type = TREE_TYPE (exp);
 	  emit_load (arg, state);
 	}
       break;


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