This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: Fix -fno-optimize-static-class-initialization impl.
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 07 Dec 2001 11:56:22 -0700
- Subject: Patch: Fix -fno-optimize-static-class-initialization impl.
- Reply-to: tromey at redhat dot com
This patch makes a minor change. Previously the option
-fno-optimize-static-class-initialization was implemented via a special
case. But we don't need that; it can use the generic machinery.
Ok?
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* lang.c (lang_f_options): Added
optimize-static-class-initialization.
(java_decode_option): Removed special case.
Index: lang.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lang.c,v
retrieving revision 1.80
diff -u -r1.80 lang.c
--- lang.c 2001/11/18 11:04:49 1.80
+++ lang.c 2001/12/07 18:47:27
@@ -173,7 +173,8 @@
{"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
@@ -324,15 +325,6 @@
if (strncmp (p, ARG, sizeof (ARG) - 1) == 0)
{
current_encoding = p + sizeof (ARG) - 1;
- return 1;
- }
-#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