This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: Fix -fno-optimize-static-class-initialization impl.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]