diff options
author | Tom Tromey <tromey@redhat.com> | 2001-12-07 19:01:19 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-12-07 19:01:19 +0000 |
commit | 8f25dc2806108d4339d8a0af97788068a8695bed (patch) | |
tree | 617108ae417a8fae4f23672e94e8edacdde5e5d0 /gcc | |
parent | 46d360629c51103214a197e1b208fc365c9e55db (diff) | |
download | gcc-8f25dc2806108d4339d8a0af97788068a8695bed.zip gcc-8f25dc2806108d4339d8a0af97788068a8695bed.tar.gz gcc-8f25dc2806108d4339d8a0af97788068a8695bed.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/lang.c | 12 |
2 files changed, 8 insertions, 10 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 6083f05..b244d2c 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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. diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 979b261..c07c586 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -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. |