diff options
author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-22 19:57:37 +0000 |
---|---|---|
committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-22 19:57:37 +0000 |
commit | f3d0f1c1f4c41cf23d52c3bbbe6a9c12dc7c8946 (patch) | |
tree | 89ab59a2a0422857efa034b3749897399c9c59c4 /gcc/java/lang.c | |
parent | b1ba79dbc3f44129a2bf977abda396dfe924529c (diff) | |
download | gcc-f3d0f1c1f4c41cf23d52c3bbbe6a9c12dc7c8946.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25907 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r-- | gcc/java/lang.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index f86640e921c..85b2bfe11dd 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. |