This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[BC] Patch: FYI: warning avoidance
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 20 Oct 2004 16:55:48 -0600
- Subject: [BC] Patch: FYI: warning avoidance
- Reply-to: tromey at redhat dot com
I'm checking this in on the BC branch.
This fixes a compilation warning due to the lack of a declaration.
It also fixes a runtime warning when linking due to a missing spec
entry for the new flag.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java-tree.h (verify_jvm_instructions_new): Declare.
* jvspec.c (jvgenmain_spec): Remove -fnew-verifier from cc1
command line.
Index: java-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/java-tree.h,v
retrieving revision 1.197.2.11
diff -u -r1.197.2.11 java-tree.h
--- java-tree.h 18 Oct 2004 22:06:01 -0000 1.197.2.11
+++ java-tree.h 20 Oct 2004 22:55:33 -0000
@@ -1309,6 +1309,8 @@
extern int can_widen_reference_to (tree, tree);
extern int class_depth (tree);
extern int verify_jvm_instructions (struct JCF *, const unsigned char *, long);
+extern int verify_jvm_instructions_new (struct JCF *, const unsigned char *,
+ long);
extern void maybe_pushlevels (int);
extern void maybe_poplevels (int);
extern void force_poplevels (int);
Index: jvspec.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jvspec.c,v
retrieving revision 1.66
diff -u -r1.66 jvspec.c
--- jvspec.c 5 Oct 2003 02:52:33 -0000 1.66
+++ jvspec.c 20 Oct 2004 22:55:33 -0000
@@ -1,6 +1,6 @@
/* Specific flags and argument handling of the front-end of the
GNU compiler for the Java(TM) language.
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of GCC.
@@ -68,7 +68,7 @@
%<fcompile-resource* %<fassert %<fno-assert \
%<femit-class-file %<femit-class-files %<fencoding*\
%<fuse-boehm-gc %<fhash-synchronization %<fjni\
- %<findirect-dispatch \
+ %<findirect-dispatch %<fnew-verifier\
%<fno-store-check %<foutput-class-dir\
%<fclasspath* %<fCLASSPATH* %<fbootclasspath*\
%<fextdirs*\