diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 1999-04-19 15:45:57 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 1999-04-19 08:45:57 -0700 |
commit | e8fc7396390399d4bf00415ed0cbb244bdeeefc1 (patch) | |
tree | 766b1f76543b43ffbf5af505600a2ae571e851f3 /gcc/java/lang.c | |
parent | 3b6e11237cc2b779df7dd9c3b2fefc55a1a4501b (diff) | |
download | gcc-e8fc7396390399d4bf00415ed0cbb244bdeeefc1.zip gcc-e8fc7396390399d4bf00415ed0cbb244bdeeefc1.tar.gz gcc-e8fc7396390399d4bf00415ed0cbb244bdeeefc1.tar.bz2 |
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/lang.c')
-rw-r--r-- | gcc/java/lang.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 009b612..abfa4be 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -177,9 +177,9 @@ lang_decode_option (argc, argv) if (strncmp (p, XARG, sizeof (XARG) - 1) == 0) { if (!(flag_emit_xref = xref_flag_value (p + sizeof (XARG) - 1))) - { - error ("Unkown xref format `%s'", p + sizeof (XARG) - 1); - } + error ("Unkown xref format `%s'", p + sizeof (XARG) - 1); + else + return 1; } #undef XARG @@ -221,6 +221,7 @@ lang_decode_option (argc, argv) flag_redundant = 1; flag_not_overriding = 1; flag_static_local_jdk1_1 = 1; + return 1; } if (strcmp (p, "-MD") == 0) |