Makefile.in: Add many missing dependencies.
authorJeffrey A Law <law@cygnus.com>
Mon, 14 Sep 1998 09:42:24 +0000 (09:42 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 14 Sep 1998 09:42:24 +0000 (03:42 -0600)
        * 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.

From-SVN: r22410

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 7f74d05a5f4e7e6f492890b2ec53d626d4b3cc43..6dc52efd086ae55bdb05d5758a9a271f2f0ced92 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 4bbff70487a6cde73dd3fb701449a04bd88b65a3..05bc1e7f6dec12097140f24f3a15ff8b0cac913d 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 cea7899973b2aa3ce09a68e68528670c955fafd3..67dad18a5dcdb3f9a99397637fab994dbdc43f3e 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 9dc49dcbeec1e4f2948fcd3a4040a5da94f5a26f..920d50d854eeea66aee57c6e1f87637ee4cb60a9 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 696f6841130debf81fe84fa57ff5752e01685095..507d48473871e54161e13b9e3645fd09a4ac26a4 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 a12931fe1bab5f729e8a7b0617e8d5776d7151e6..1d00ee5f533e42c39f2d8530ef53c2ad946d57db 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 46c0f7cd7138929c48c659500b931a83bf50c08c..cbfeb0a8cc270ea6a3ad81335202628cffbe3a4e 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 2c204da534f5ef73bf3069e401b026a49102ba3c..3b8538c60e87e6d5f047da64204864579475f571 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 e805d08dbb4e2a59d02c6200ad961cb5773e7f7e..e5586326d8de04b85516b943ccc3d83291e2e903 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 0e8c51ccbde745c4dcc24e38706ad7b42de2d4ae..cdcbcedd8e1b8494fb92534085b561f24cacd7a9 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 931c9d582c182b90f2be83f3bce40d1f530ed8db..b5bbdff0a83d06a7a5ca7737e0e7dd3220d390e4 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 ce7c60a315e29e297c483816c4d2b8f9d1ce1265..5e767afffe61fcf7d5c31ba25d86660052b1eacb 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 ddaff0cc6b51fc0dd011dd5aa682757b7e6fb82f..7d46f50eb5deccc678d3c4b269a3b0ed6a60dd8d 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 f303c926a08765428577f46d4ac56982d8fc1857..08f587a6c9681f95f23213bdb50452ed84429eb5 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 211e4b69cc47680ea32eb6ad1c735cc42285dab9..b388ff7b44d839bca512f5a289fdbabd49b42c4a 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 82a081f079c0476d2faa14307870c759abc98a26..e0d4e097773eeb67db50c3ef23fe61440f680b82 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;