This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


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

Re: Multiple file compilation patch


If people want to temporarily have it so we only get the input-combination
when it is needed - i.e. when -S or -c are specified, this may be
worth trying.

However, things are improving.  Last night I was able to compile 19
input-combined class files (compiled using gcj-compiled Kawa from
Scheme), link it with the rest of Kawa (compiled from .java), and get
a kawa executable that worked (at least for a minimal sanity-test).

Index: jvspec.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jvspec.c,v
retrieving revision 1.35.2.1
diff -u -p -r1.35.2.1 jvspec.c
--- jvspec.c	2001/03/17 21:53:11	1.35.2.1
+++ jvspec.c	2001/03/18 18:37:33
@@ -166,6 +166,10 @@ lang_specific_driver (in_argc, in_argv, 
   /* Saw -C or -o option, respectively. */
   int saw_C = 0;
   int saw_o = 0;
+#if 1
+  int saw_c = 0;
+  int saw_S = 0;
+#endif
 
   /* Saw some -O* or -g* option, respectively. */
   int saw_O = 0;
@@ -255,6 +259,12 @@ lang_specific_driver (in_argc, in_argv, 
 	      library = 0;
 	      will_link = 0;
 	    }
+#if 1
+	  else if (argv[i][1] == 'c')
+	    saw_c = 1;
+	  else if (argv[i][1] == 'S')
+	    saw_S = 1;
+#endif
 	  else if (argv[i][1] == 'D')
 	    saw_D = 1;
 	  else if (argv[i][1] == 'g')
@@ -367,6 +377,9 @@ lang_specific_driver (in_argc, in_argv, 
       if (saw_o)
 	fatal ("cannot specify both -C and -o");
     }
+#if 1
+  if (saw_c || saw_S) /* for now */
+#endif
   if ((saw_o && java_files_count + class_files_count > 1)
       || (saw_C && java_files_count > 1))
     combine_inputs = 1;

-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


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