summaryrefslogtreecommitdiff
path: root/gcc/java/xref.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1999-04-19 15:45:57 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-04-19 08:45:57 -0700
commite8fc7396390399d4bf00415ed0cbb244bdeeefc1 (patch)
tree766b1f76543b43ffbf5af505600a2ae571e851f3 /gcc/java/xref.c
parent3b6e11237cc2b779df7dd9c3b2fefc55a1a4501b (diff)
downloadgcc-e8fc7396390399d4bf00415ed0cbb244bdeeefc1.tar.gz
lang.c (lang_decode_option): Fixed returned value when parsing `-fxref=...' and `-Wall'.
Mon Apr 19 14:44:48 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * lang.c (lang_decode_option): Fixed returned value when parsing `-fxref=...' and `-Wall'. * parse.y (source_end_java_method): Do not generate code when flag_emit_xref is set. (resolve_expression_name): Do not build static field access when flag_emit_xref is set. (resolve_field_access): No special treatement on `length' when flag_emit_xref is set. Do not build qualified static field access when flag_emit_xref is set. (patch_invoke): Keep the method DECL as operand 0 of the CALL_EXPR when flag_emit_xref is set. (patch_assignment): Do not generate array store runtime check when flag_emit_xref is set. * xref.c (xref_flag_value): Fixed function declaration indentation. (xset_set_data): New function. * xref.h (xref_set_data): Added prototype for new function. (typedef struct xref_flag_table): New field data. (XREF_GET_DATA): New macro. From-SVN: r26550
Diffstat (limited to 'gcc/java/xref.c')
-rw-r--r--gcc/java/xref.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/java/xref.c b/gcc/java/xref.c
index 6f570d7f42b..935378413c4 100644
--- a/gcc/java/xref.c
+++ b/gcc/java/xref.c
@@ -40,7 +40,8 @@ static xref_flag_table xref_table [] = {
/* Decode an xref flag value. Return 0 if the flag wasn't found. */
-int xref_flag_value (flag)
+int
+xref_flag_value (flag)
char *flag;
{
int i;
@@ -50,6 +51,14 @@ int xref_flag_value (flag)
return 0;
}
+void
+xref_set_data (flag, data)
+ int flag;
+ void *data;
+{
+ xref_table [flag-1].data = data;
+}
+
/* Branch to the right xref "back-end". */
void