lang.c (lang_f_options): Added optimize-static-class-initialization.

* lang.c (lang_f_options): Added
	optimize-static-class-initialization.
	(java_decode_option): Removed special case.

From-SVN: r47768
This commit is contained in:
Tom Tromey 2001-12-07 19:01:19 +00:00 committed by Tom Tromey
parent 46d360629c
commit 8f25dc2806
2 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,9 @@
2001-12-07 Tom Tromey <tromey@redhat.com>
* lang.c (lang_f_options): Added
optimize-static-class-initialization.
(java_decode_option): Removed special case.
2001-12-07 Per Bothner <per@bothner.com>
* check-init.c (check_init): Fix typo freeing memory twice.

View File

@ -173,7 +173,8 @@ lang_f_options[] =
{"hash-synchronization", &flag_hash_synchronization, 1},
{"jni", &flag_jni, 1},
{"check-references", &flag_check_references, 1},
{"force-classes-archive-check", &flag_force_classes_archive_check, 1}
{"force-classes-archive-check", &flag_force_classes_archive_check, 1},
{"optimize-static-class-initialization", &flag_optimize_sci, 1 }
};
static struct string_option
@ -328,15 +329,6 @@ java_decode_option (argc, argv)
}
#undef ARG
#undef ARG
#define ARG "-fno-optimize-static-class-initialization"
if (strncmp (p, ARG, sizeof (ARG) - 1) == 0)
{
flag_optimize_sci = 0;
return 1;
}
#undef ARG
if (p[0] == '-' && p[1] == 'f')
{
/* Some kind of -f option.