aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lang.c
diff options
context:
space:
mode:
authorAnthony Green <green@cygnus.com>1999-11-21 23:37:58 +0000
committerAnthony Green <green@gcc.gnu.org>1999-11-21 23:37:58 +0000
commit48aedbca8b443b60afa81bfc58107a64f3fb2e99 (patch)
tree6339330b1e1b16ec9eff2000914b559bac7134bd /gcc/java/lang.c
parent250ba2372cdb135d47cb4a47227d0457fb73ce9a (diff)
downloadgcc-48aedbca8b443b60afa81bfc58107a64f3fb2e99.zip
gcc-48aedbca8b443b60afa81bfc58107a64f3fb2e99.tar.gz
gcc-48aedbca8b443b60afa81bfc58107a64f3fb2e99.tar.bz2
constants.c (find_methodref_index): Unwrap method names before inserting them in the constant pool.
* constants.c (find_methodref_index): Unwrap method names before inserting them in the constant pool. * jcf-parse.c (jcf_parse): Display `interface' when appropriate. * class.c (assume_compiled_node): New typedef. (assume_compiled_tree): New static data. (find_assume_compiled_node): New function. (add_assume_compiled): New function. (assume_compiled): New function. * class.c (make_class_data): Use assume_compiled. (is_compiled_class): Use assume_compiled. * java-tree.h (add_assume_compiled): Declare. * lang.c (lang_decode_option): Parse new options. From-SVN: r30608
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r--gcc/java/lang.c31
1 files changed, 29 insertions, 2 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index 018f93d..11be76d 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -124,7 +124,6 @@ extern int flag_exceptions;
static struct { const char *string; int *variable; int on_value;}
lang_f_options[] =
{
- {"assume-compiled", &flag_assume_compiled, 1},
{"emit-class-file", &flag_emit_class_files, 1},
{"emit-class-files", &flag_emit_class_files, 1},
{"use-divide-subroutine", &flag_use_divide_subroutine, 1},
@@ -151,6 +150,34 @@ lang_decode_option (argc, argv)
{
char *p = argv[0];
+#define CLARG "-fassume-compiled="
+ if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
+ {
+ add_assume_compiled (p + sizeof (CLARG) - 1, 0);
+ return 1;
+ }
+#undef CLARG
+#define CLARG "-fno-assume-compiled="
+ if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
+ {
+ add_assume_compiled (p + sizeof (CLARG) - 1, 1);
+ return 1;
+ }
+#undef CLARG
+#define CLARG "-fassume-compiled"
+ if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
+ {
+ add_assume_compiled ("", 0);
+ return 1;
+ }
+#undef CLARG
+#define CLARG "-fno-assume-compiled"
+ if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
+ {
+ add_assume_compiled ("", 1);
+ return 1;
+ }
+#undef CLARG
#define CLARG "-fclasspath="
if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
{
@@ -159,7 +186,7 @@ lang_decode_option (argc, argv)
}
#undef CLARG
#define CLARG "-fCLASSPATH="
- else if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
+ if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
{
jcf_path_CLASSPATH_arg (p + sizeof (CLARG) - 1);
return 1;