aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lang.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1999-03-22 19:57:37 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-03-22 11:57:37 -0800
commit235acd35186b64c7552439eec898b02a4dcec9ed (patch)
tree89ab59a2a0422857efa034b3749897399c9c59c4 /gcc/java/lang.c
parenta127db7565df9c75cdb7a302c63d2139b73d61d6 (diff)
downloadgcc-235acd35186b64c7552439eec898b02a4dcec9ed.zip
gcc-235acd35186b64c7552439eec898b02a4dcec9ed.tar.gz
gcc-235acd35186b64c7552439eec898b02a4dcec9ed.tar.bz2
Makefile.in: (JAVA_OBJS) Added entry xref.o.
1999-03-22 Alexandre Petit-Bianco <apbianco@cygnus.com> * Makefile.in: (JAVA_OBJS) Added entry xref.o. (xref.o): New rule. * java-tree.h (flag_emit_xref): Declared extern. * lang.c: (xref.h): Included. (flag_emit_xref): New global variable. (lang_decode_option): Added support for -fxref. * xref.c: Created. * xref.h: Likewise. From-SVN: r25907
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r--gcc/java/lang.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index f86640e..85b2bfe 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -32,6 +32,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "jcf.h"
#include "toplev.h"
#include "flags.h"
+#include "xref.h"
#ifndef OBJECT_SUFFIX
# define OBJECT_SUFFIX ".o"
@@ -87,6 +88,11 @@ int flag_assume_compiled = 1;
int flag_emit_class_files = 0;
+/* When non zero, we emit xref strings. Values of the flag for xref
+ backends are defined in xref_flag_table, xref.c. */
+
+int flag_emit_xref = 0;
+
/* When non zero, -Wall was turned on. */
int flag_wall = 0;
@@ -168,6 +174,16 @@ lang_decode_option (argc, argv)
}
#undef ARG
+#define XARG "-fxref="
+ if (strncmp (p, XARG, sizeof (XARG) - 1) == 0)
+ {
+ if (!(flag_emit_xref = xref_flag_value (p + sizeof (XARG) - 1)))
+ {
+ error ("Unkown xref back end `%s'", p + sizeof (XARG) - 1);
+ }
+ }
+#undef XARG
+
if (p[0] == '-' && p[1] == 'f')
{
/* Some kind of -f option.