gcc/
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2005 11:22:18 +0000 (11:22 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2005 11:22:18 +0000 (11:22 +0000)
* doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
* Makefile.in: Add code to compute some dependencies on s-gtype
automatically.  Remove the declaration of those dependencies.
gcc/java/
* Make-lang.in: Remove all dependencies on s-gtype, except for
gt-java-parse.h.
gcc/objc/
* Make-lang.in: Remove all dependencies on s-gtype.
gcc/objcp/
* Make-lang.in: Remove all dependencies on s-gtype.
gcc/cp/
* Make-lang.in: Remove all dependencies on s-gtype.
gcc/ada/
* Make-lang.in: Remove all dependencies on s-gtype.
gcc/fortran/
* Make-lang.in: Remove all dependencies on s-gtype, except for
gt-fortran-trans.h.
gcc/treelang/
* Make-lang.in: Remove all dependencies on s-gtype.

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

17 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/ada/ChangeLog
gcc/ada/Make-lang.in
gcc/cp/ChangeLog
gcc/cp/Make-lang.in
gcc/doc/gty.texi
gcc/fortran/ChangeLog
gcc/fortran/Make-lang.in
gcc/java/ChangeLog
gcc/java/Make-lang.in
gcc/objc/ChangeLog
gcc/objc/Make-lang.in
gcc/objcp/ChangeLog
gcc/objcp/Make-lang.in
gcc/treelang/ChangeLog
gcc/treelang/Make-lang.in

index 194ed62..1e698c0 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+
+       * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
+       * Makefile.in: Add code to compute some dependencies on s-gtype
+       automatically.  Remove the declaration of those dependencies.
+
 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
 
        * gcc/reload.c (push_secondary_reload): Fix typo:
 
 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
 
-       PR C++/24138
-        * tree.c (integer_all_onesp): Always return true if all bits on.
+       PR C++/24138
+       * tree.c (integer_all_onesp): Always return true if all bits on.
 
-        * testsuite/g++.dg/init/array0.C: New.
+       * testsuite/g++.dg/init/array0.C: New.
 
 2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
 
-         * doc/md.texi: Adapt to implementation.
+       * doc/md.texi: Adapt to implementation.
 
 2005-12-06  Andreas Schwab  <schwab@suse.de>
 
index 51d8731..c70f249 100644 (file)
@@ -2776,14 +2776,25 @@ GTFILES_FILES_FILES = @all_gtfiles_files_files@
 GTFILES_LANG_DIR_NAMES = @subdirs@
 GTFILES_SRCDIR = @srcdir@
 
+GTFILES_FILES_FILES_C = $(subst $(srcdir)/,, \
+       $(filter %.c, $(GTFILES_FILES_FILES)))
+GTFILES_FILES_FILES_H = $(addprefix gt-, \
+       $(subst /,-,$(GTFILES_FILES_FILES_C:.c=.h)))
+GTFILES_LANG_DIR_NAMES_H = $(foreach d,$(GTFILES_LANG_DIR_NAMES), gtype-$(d).h)
+ALL_GTFILES_H := $(shell echo $(GTFILES_FILES_FILES_H) \
+       $(GTFILES_LANG_DIR_NAMES_H) | sed "s/ /\n/g" | sort -u)
+
+$(ALL_GTFILES_H) : s-gtype ; @true
+
+
 gt-cgraph.h gt-coverage.h gtype-desc.h gtype-desc.c gt-except.h \
 gt-function.h gt-integrate.h gt-tree.h gt-varasm.h \
 gt-emit-rtl.h gt-explow.h gt-stor-layout.h gt-regclass.h \
 gt-lists.h gt-alias.h gt-cselib.h gt-gcse.h \
 gt-expr.h gt-sdbout.h gt-optabs.h gt-bitmap.h gt-dojump.h \
 gt-dwarf2out.h gt-reg-stack.h gt-dwarf2asm.h \
-gt-dbxout.h gt-c-common.h gt-c-decl.h gt-c-parser.h \
-gt-c-pragma.h gtype-c.h gt-cfglayout.h \
+gt-dbxout.h \
+gtype-c.h gt-cfglayout.h \
 gt-tree-mudflap.h gt-tree-vect-generic.h \
 gt-tree-profile.h gt-tree-ssa-address.h \
 gt-tree-ssanames.h gt-tree-iterator.h gt-gimplify.h \
index 3d978b5..59f1a88 100644 (file)
@@ -1,3 +1,7 @@
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+
+       * Make-lang.in: Remove all dependencies on s-gtype.
+
 2005-12-05  Richard Guenther  <rguenther@suse.de>
 
        * utils.c (convert): Use fold_convert where appropriate.
index d6f78bd..2f25270 100644 (file)
@@ -298,7 +298,7 @@ gen-soccon: force
           LIBGNAT_OBJS=gen-soccon \
           gnatlib
 
-gt-ada-decl.h gt-ada-trans.h gt-ada-utils.h gtype-ada.h : s-gtype ; @true
+
 \f
 # Build hooks:
 
index 77f506e..05f7cad 100644 (file)
@@ -1,3 +1,7 @@
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+
+       * Make-lang.in: Remove all dependencies on s-gtype.
+
 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
 
        PR C++/24138
index 7b9b7d9..e9fce7d 100644 (file)
@@ -109,11 +109,6 @@ $(srcdir)/cp/cfns.h: $(srcdir)/cp/cfns.gperf
        gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \
                $(srcdir)/cp/cfns.gperf > $(srcdir)/cp/cfns.h
 
-gtype-cp.h gt-cp-call.h gt-cp-decl.h gt-cp-decl2.h : s-gtype; @true
-gt-cp-pt.h gt-cp-repo.h gt-cp-parser.h gt-cp-method.h : s-gtype; @true
-gt-cp-tree.h gt-cp-mangle.h gt-cp-name-lookup.h gt-cp-typeck2.h: s-gtype; @true
-gt-cp-rtti.h gt-cp-cp-objcp-common.h: s-gtype ; @true
-
 #\f
 # Build hooks:
 
index cf4bde7..d997d1e 100644 (file)
@@ -429,16 +429,8 @@ generated header file should be included after everything else in the
 source file.  Don't forget to mention this file as a dependency in the
 @file{Makefile}!
 
-@item
-If a new @file{gt-@var{path}.h} file is needed, you need to arrange to
-add a @file{Makefile} rule that will ensure this file can be built.
-This is done by making it a dependency of @code{s-gtype}, like this:
-@verbatim
-gt-path.h : s-gtype ; @true
-@end verbatim
 @end enumerate
 
 For language frontends, there is another file that needs to be included
 somewhere.  It will be called @file{gtype-@var{lang}.h}, where
 @var{lang} is the name of the subdirectory the language is contained in.
-It will need @file{Makefile} rules just like the other generated files.
index 00dcfdd..d43c884 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+
+       * Make-lang.in: Remove all dependencies on s-gtype, except for
+       gt-fortran-trans.h.
+
 2005-12-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
 
        PR fortran/25106
index 5d3a0e0..d8a9f1c 100644 (file)
@@ -108,11 +108,7 @@ f951$(exeext): $(F95_OBJS) \
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
                $(F95_OBJS) $(BACKEND) $(F95_LIBS)
 
-gt-fortran-f95-lang.h gtype-fortran.h        : s-gtype; @true
-gt-fortran-trans-decl.h gt-fortran-trans.h    : s-gtype; @true
-gt-fortran-trans-io.h gt-fortran-trans-types.h: s-gtype; @true
-gt-fortran-trans-intrinsic.h                 : s-gtype; @true
-
+gt-fortran-trans.h    : s-gtype; @true
 #\f
 # Build hooks:
 
index cdcf6ee..e294b03 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+
+       * Make-lang.in: Remove all dependencies on s-gtype, except for
+       gt-java-parse.h.
+
 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
 
        * class.c (build_utf8_ref, emit_register_classes): Use
index 458d65b..2605fd2 100644 (file)
@@ -95,10 +95,7 @@ $(srcdir)/java/keyword.h: $(srcdir)/java/keyword.gperf
        exit 1; } ; \
        mv -f k$$$$.h keyword.h)
 
-gt-java-class.h gt-java-constants.h gt-java-decl.h : s-gtype ; @true
-gt-java-expr.h gt-java-jcf-parse.h gt-java-jcf-write.h : s-gtype ; @true
-gt-java-lang.h gt-java-mangle.h gt-java-parse.h : s-gtype ; @true
-gt-java-builtins.h gtype-java.h gt-java-resource.h : s-gtype ; @true
+gt-java-parse.h : s-gtype ; @true
 
 # Executables built by this Makefile:
 JAVA_OBJS = java/parse.o java/class.o java/decl.o java/expr.o \
index 8ad03db..f9c1ac6 100644 (file)
@@ -1,3 +1,7 @@
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+
+       * Make-lang.in: Remove all dependencies on s-gtype.
+
 2005-12-02  Richard Guenther  <rguenther@suse.de>
 
        * objc-act.c (objc_build_exc_ptr, next_sjlj_build_enter_and_setjmp
index ed22bd6..ebe5467 100644 (file)
@@ -81,9 +81,6 @@ objc/objc-act.o : objc/objc-act.c \
 
 objc.srcextra:
 
-gtype-objc.h : s-gtype ; @true
-gt-objc-objc-act.h : s-gtype ; @true
-
 #\f
 # Build hooks:
 
index c89d3be..305ef68 100644 (file)
@@ -1,3 +1,7 @@
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+
+       * Make-lang.in: Remove all dependencies on s-gtype.
+
 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * objcp-decl.c (objcp_lookup_name): Remove.
index f205728..ac3dd9a 100644 (file)
@@ -89,8 +89,6 @@ objcp/objcp-act.o : objc/objc-act.c \
 
 po-generated:
 
-gtype-objcp.h : s-gtype ; @true
-
 #\f
 # Build hooks:
 
index 6996364..9f14343 100644 (file)
@@ -1,3 +1,7 @@
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+
+       * Make-lang.in: Remove all dependencies on s-gtype.
+
 2005-12-05  Richard Guenther  <rguenther@suse.de>
 
        * treetree.c (tree_code_if_start, tree_code_create_variable,
index 8e99dd7..3c44187 100644 (file)
@@ -138,8 +138,6 @@ treelang/parse.c treelang/parse.h treelang/parse.output: treelang/parse.y
 
 # -v
 
-gt-treelang-tree1.h gtype-treelang.h : s-gtype; @true
-
 #\f
 # Build hooks: