OSDN Git Service

* Makefile.in: Add many missing dependencies.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Sep 1998 09:42:24 +0000 (09:42 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Sep 1998 09:42:24 +0000 (09:42 +0000)
        * buffer.c, class.c, constants.c, decl.c: Use system.h and toplev.h
        as appropriate.
        * except.c, expr.c, jcf-io.c jcf-parse.c, jcf-write.c: Likewise.
        * jvgenmain.c lang.c mangle.c typeck.c verify.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22410 138bc75d-0d04-0410-961f-82ee72b054a4

16 files changed:
gcc/java/ChangeLog
gcc/java/Makefile.in
gcc/java/buffer.c
gcc/java/class.c
gcc/java/constants.c
gcc/java/decl.c
gcc/java/except.c
gcc/java/expr.c
gcc/java/jcf-io.c
gcc/java/jcf-parse.c
gcc/java/jcf-write.c
gcc/java/jvgenmain.c
gcc/java/lang.c
gcc/java/mangle.c
gcc/java/typeck.c
gcc/java/verify.c

index 7f74d05..6dc52ef 100644 (file)
@@ -1,3 +1,11 @@
+Mon Sep 14 10:14:47 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * Makefile.in: Add many missing dependencies.
+       * buffer.c, class.c, constants.c, decl.c: Use system.h and toplev.h
+       as appropriate.
+       * except.c, expr.c, jcf-io.c jcf-parse.c, jcf-write.c: Likewise.
+       * jvgenmain.c lang.c mangle.c typeck.c verify.c: Likewise.
+
 Thu Sep 10 10:33:31 1998  Jeffrey A Law  (law@cygnus.com)
 
        * Make-lang.in (GCJ): Define before using.
index 4bbff70..05bc1e7 100644 (file)
@@ -214,6 +214,12 @@ Makefile: $(srcdir)/Makefile.in $(srcdir)/../configure
 native: config.status ../jc1$(exeext)
 \f
 # Compiling object files from source files.
+TREE_H = $(srcdir)/../tree.h $(srcdir)/../real.h $(srcdir)/../tree.def \
+        $(srcdir)/../machmode.h $(srcdir)/../machmode.def
+JAVA_TREE_H = $(TREE_H) java-tree.h java-tree.def
+RTL_H = $(srcdir)/../rtl.h $(srcdir)/../rtl.def \
+        $(srcdir)/../machmode.h $(srcdir)/../machmode.def
+EXPR_H = $(srcdir)/../expr.h ../insn-codes.h
 
 PARSE_H = $(srcdir)/parse.h
 PARSE_C = $(srcdir)/parse.c
@@ -256,3 +262,32 @@ force:
 parse.o: $(PARSE_C) jcf-reader.c
 jcf-dump.o: jcf-reader.c jcf.h javaop.h javaop.def
 gjavah.o: jcf-reader.c jcf.h javaop.h
+buffer.o : buffer.c $(CONFIG_H) buffer.h $(srcdir)/../gansidecl.h \
+  $(srcdir)/../system.h $(srcdir)/../toplev.h
+class.o : class.c $(CONFIG_H) $(JAVA_TREE_H) $(RTL_H) jcf.h \
+  $(srcdir)/../gansidecl.h $(srcdir)/../toplev.h $(srcdir)/../system.h
+constants.o : constants.c $(CONFIG_H) $(JAVA_TREE_H) jcf.h \
+  $(srcdir)/../toplev.h $(srcdir)/../system.h
+decl.o : decl.c $(CONFIG_H) $(JAVA_TREE_H) jcf.h \
+  $(srcdir)/../toplev.h $(srcdir)/../system.h
+except.o : except.c $(CONFIG_H) $(JAVA_TREE_H) jcf.h $(srcdir)/../real.h \
+  $(RTL_H) javaop.h java-opcodes.h $(srcdir)/../except.h java-except.h \
+  $(srcdir)/../eh-common.h $(srcdir)/../toplev.h $(srcdir)/../system.h
+expr.o : expr.c $(CONFIG_H) $(JAVA_TREE_H) jcf.h $(srcdir)/../real.h \
+  $(RTL_H) $(EXPR_H) javaop.h java-opcodes.h $(srcdir)/../except.h \
+  java-except.h java-except.h parse.h $(srcdir)/../toplev.h \
+  $(srcdir)/../system.h
+jcf-io.o: jcf-io.c $(CONFIG_H) $(srcdir)/../system.h
+jcf-parse.o : jcf-parse.c $(CONFIG_H) $(JAVA_TREE_H) $(srcdir)/../flags.h \
+  $(srcdir)/../input.h java-except.h $(srcdir)/../system.h
+jcf-write.o : jcf-write.c $(CONFIG_H) $(JAVA_TREE_H) jcf.h $(RTL_H) \
+  java-opcodes.h parse.h buffer.h $(srcdir)/../system.h
+jvgenmain.o : jvgenmain.c $(CONFIG_H) $(srcdir)/../system.h
+lang.o : lang.c $(CONFIG_H) $(JAVA_TREE_H) jcf.h $(srcdir)/../input.h \
+  $(srcdir)/../toplev.h $(srcdir)/../system.h
+mangle.o : mangle.c $(CONFIG_H) jcf.h $(srcdir)/../system.h
+typeck.o : typeck.c $(CONFIG_H) $(JAVA_TREE_H) jcf.h convert.h \
+  $(srcdir)/../toplev.h (srcdir)/../system.h
+verify.o : verify.c $(CONFIG_H) $(JAVA_TREE_H) jcf.h java-op.h java-opcodes.h \
+  java-except.h $(srcdir)/../toplev.h (srcdir)/../system.h
+
index cea7899..67dad18 100644 (file)
@@ -20,6 +20,8 @@ Boston, MA 02111-1307, USA.  */
 
 /* Written by Per Bothner <bothner@cygnus.com>, July 1998. */
 
+#include "config.h"
+#include "system.h"
 #include "gansidecl.h"
 #include "buffer.h"
 
index 9dc49dc..920d50d 100644 (file)
@@ -24,13 +24,14 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 /* Written by Per Bothner <bothner@cygnus.com> */
 
-#include <stdio.h>
 #include "config.h"
+#include "system.h"
 #include "tree.h"
 #include "rtl.h"
 #include "java-tree.h"
 #include "jcf.h"
 #include "obstack.h"
+#include "toplev.h"
 
 static tree mangle_class_field PROTO ((tree class));
 
index 696f684..507d484 100644 (file)
@@ -22,10 +22,11 @@ of Sun Microsystems, Inc. in the United States and other countries.
 The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 #include "config.h"
+#include "system.h"
 #include "tree.h"
 #include "java-tree.h"
 #include "jcf.h"
-#include "system.h"
+#include "toplev.h"
 
 extern struct obstack permanent_obstack;
 
index a12931f..1d00ee5 100644 (file)
@@ -27,10 +27,11 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 /* Hacked by Per Bothner <bothner@cygnus.com> February 1996. */
 
 #include "config.h"
+#include "system.h"
 #include "tree.h"
 #include "java-tree.h"
 #include "jcf.h"
-#include "system.h"
+#include "toplev.h"
 
 /* The DECL_MAP is a mapping from (index, type) to a decl node.
    If index < max_locals, it is the index of a local variable.
index 46c0f7c..cbfeb0a 100644 (file)
@@ -22,8 +22,8 @@ Java and all Java-based marks are trademarks or registered trademarks
 of Sun Microsystems, Inc. in the United States and other countries.
 The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
-#include <stdio.h>
 #include "config.h"
+#include "system.h"
 #include "tree.h"
 #include "real.h"
 #include "rtl.h"
@@ -34,6 +34,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 #include "except.h"
 #include "java-except.h"
 #include "eh-common.h"
+#include "toplev.h"
 
 extern struct obstack permanent_obstack;
 
index 2c204da..3b8538c 100644 (file)
@@ -24,8 +24,8 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 /* Hacked by Per Bothner <bothner@cygnus.com> February 1996. */
 
-#include <stdio.h>
 #include "config.h"
+#include "system.h"
 #include "tree.h"
 #include "real.h"
 #include "rtl.h"
@@ -36,6 +36,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 #include "jcf.h"
 #include "java-except.h"
 #include "parse.h"
+#include "toplev.h"
 
 static tree operand_type[59];
 extern struct obstack permanent_obstack;
index e805d08..e558632 100644 (file)
@@ -22,19 +22,14 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 /* Written by Per Bothner <bothner@cygnus.com>, February 1996. */
 
-#include <stdio.h>
+#include "config.h"
+#include "system.h"
 
 #define ENABLE_UNZIP 1
 
 #include "jcf.h"
-#ifdef __STDC__
-#include <stdlib.h>
-#endif
-#include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
-#include <errno.h>
-#include <fcntl.h>
 
 /* DOS brain-damage */
 #ifndef O_BINARY
@@ -158,8 +153,8 @@ zipfile, zipmember),
          jcf->read_ptr = jcf->buffer;
          jcf->read_end = jcf->buffer_end;
          jcf->filbuf = jcf_unexpected_eof;
-         jcf->filename = (char *) strdup (zipfile);
-         jcf->classname = (char *) strdup (zipmember);
+         jcf->filename = strdup (zipfile);
+         jcf->classname = strdup (zipmember);
          jcf->zipd = (void *)zipd;
          if (lseek (zipf->z.fd, zipd->filestart, 0) < 0
              || read (zipf->z.fd, jcf->buffer, zipd->size) != zipd->size)
index 0e8c51c..cdcbced 100644 (file)
@@ -24,9 +24,8 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 /* Written by Per Bothner <bothner@cygnus.com> */
 
-#include <stdio.h>
-#include <ctype.h>
 #include "config.h"
+#include "system.h"
 #include "tree.h"
 #include "obstack.h"
 #include "flags.h"
@@ -51,14 +50,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
     JCF_SKIP (JCF, LENGTH); } while (0)
 
 #include "jcf.h"
-#ifdef __STDC__
-/* For getenv */
-#include <stdlib.h>
-#endif
-
-#ifndef SEEK_SET
-#include <unistd.h>
-#endif
 
 extern struct obstack *saveable_obstack;
 extern struct obstack temporary_obstack;
index 931c9d5..b5bbdff 100644 (file)
@@ -22,10 +22,10 @@ of Sun Microsystems, Inc. in the United States and other countries.
 The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 #include "config.h"
+#include "system.h"
 #include "tree.h"
 #include "java-tree.h"
 #include "jcf.h"
-#include <stdio.h>
 #include "obstack.h"
 #undef AND
 #include "rtl.h"
index ce7c60a..5e767af 100644 (file)
@@ -24,9 +24,8 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 /* Written by Per Bothner <bothner@cygnus.com> */
 
-#include <stdio.h>
-#include <stdlib.h>
 #include "config.h"
+#include "system.h"
 #include "obstack.h"
 
 const char main_method_prefix[] = "main__";
index ddaff0c..7d46f50 100644 (file)
@@ -24,12 +24,13 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 /* Hacked by Per Bothner <bothner@cygnus.com> February 1996. */
 
-#include <stdio.h>
 #include "config.h"
+#include "system.h"
 #include "tree.h"
 #include "input.h"
 #include "java-tree.h"
 #include "jcf.h"
+#include "toplev.h"
 
 int compiling_from_source;
 
index f303c92..08f587a 100644 (file)
@@ -25,9 +25,8 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 /* Written by Per Bothner <bothner@cygnus.com> */
 
-#include <stdio.h>
-#include <string.h>
 #include "config.h"
+#include "system.h"
 #include "jcf.h"
 #include "obstack.h"
 
index 211e4b6..b388ff7 100644 (file)
@@ -25,11 +25,13 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 /* Written by Per Bothner <bothner@cygnus.com> */
 
 #include "config.h"
+#include "system.h"
 #include "tree.h"
 #include "obstack.h"
 #include "java-tree.h"
 #include "jcf.h"
 #include "convert.h"
+#include "toplev.h"
 
 tree * type_map;
 extern struct obstack permanent_obstack;
index 82a081f..e0d4e09 100644 (file)
@@ -23,14 +23,15 @@ Java and all Java-based marks are trademarks or registered trademarks
 of Sun Microsystems, Inc. in the United States and other countries.
 The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
-#include <stdio.h>
 #include "config.h"
+#include "system.h"
 #include "tree.h"
 #include "java-tree.h"
 #include "javaop.h"
 #include "java-opcodes.h"
 #include "jcf.h"
 #include "java-except.h"
+#include "toplev.h"
 
 extern int stack_pointer;