diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 194ed62c12f..1e698c0ccda 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-12-07 Rafael Ávila de Espíndola + + * 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 * gcc/reload.c (push_secondary_reload): Fix typo: @@ -516,14 +522,14 @@ 2005-12-06 Aldy Hernandez - 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 - * doc/md.texi: Adapt to implementation. + * doc/md.texi: Adapt to implementation. 2005-12-06 Andreas Schwab diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 51d87315ef3..c70f249bba4 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -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 \ diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 3d978b53599..59f1a887336 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2005-12-07 Rafael Ávila de Espíndola + + * Make-lang.in: Remove all dependencies on s-gtype. + 2005-12-05 Richard Guenther * utils.c (convert): Use fold_convert where appropriate. diff --git a/gcc/ada/Make-lang.in b/gcc/ada/Make-lang.in index d6f78bdf501..2f25270541a 100644 --- a/gcc/ada/Make-lang.in +++ b/gcc/ada/Make-lang.in @@ -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 + # Build hooks: diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 77f506e93bd..05f7cadc4f4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2005-12-07 Rafael Ávila de Espíndola + + * Make-lang.in: Remove all dependencies on s-gtype. + 2005-12-06 Aldy Hernandez PR C++/24138 diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index 7b9b7d9046e..e9fce7d9e2d 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -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 - # # Build hooks: diff --git a/gcc/doc/gty.texi b/gcc/doc/gty.texi index cf4bde76d73..d997d1edc6d 100644 --- a/gcc/doc/gty.texi +++ b/gcc/doc/gty.texi @@ -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. diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 00dcfddb6f6..d43c8840124 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2005-12-07 Rafael Ávila de Espíndola + + * Make-lang.in: Remove all dependencies on s-gtype, except for + gt-fortran-trans.h. + 2005-12-30 Francois-Xavier Coudert PR fortran/25106 diff --git a/gcc/fortran/Make-lang.in b/gcc/fortran/Make-lang.in index 5d3a0e0ef5f..d8a9f1c64fe 100644 --- a/gcc/fortran/Make-lang.in +++ b/gcc/fortran/Make-lang.in @@ -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 # # Build hooks: diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index cdcf6ee086d..e294b03ff90 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2005-12-07 Rafael Ávila de Espíndola + + * Make-lang.in: Remove all dependencies on s-gtype, except for + gt-java-parse.h. + 2005-12-07 Richard Sandiford * class.c (build_utf8_ref, emit_register_classes): Use diff --git a/gcc/java/Make-lang.in b/gcc/java/Make-lang.in index 458d65b80eb..2605fd21a29 100644 --- a/gcc/java/Make-lang.in +++ b/gcc/java/Make-lang.in @@ -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 \ diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 8ad03db40b7..f9c1ac6b050 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,7 @@ +2005-12-07 Rafael Ávila de Espíndola + + * Make-lang.in: Remove all dependencies on s-gtype. + 2005-12-02 Richard Guenther * objc-act.c (objc_build_exc_ptr, next_sjlj_build_enter_and_setjmp diff --git a/gcc/objc/Make-lang.in b/gcc/objc/Make-lang.in index ed22bd6c116..ebe54673aba 100644 --- a/gcc/objc/Make-lang.in +++ b/gcc/objc/Make-lang.in @@ -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 - # # Build hooks: diff --git a/gcc/objcp/ChangeLog b/gcc/objcp/ChangeLog index c89d3be736f..305ef686361 100644 --- a/gcc/objcp/ChangeLog +++ b/gcc/objcp/ChangeLog @@ -1,3 +1,7 @@ +2005-12-07 Rafael Ávila de Espíndola + + * Make-lang.in: Remove all dependencies on s-gtype. + 2005-11-22 Andrew Pinski * objcp-decl.c (objcp_lookup_name): Remove. diff --git a/gcc/objcp/Make-lang.in b/gcc/objcp/Make-lang.in index f2057289742..ac3dd9a5933 100644 --- a/gcc/objcp/Make-lang.in +++ b/gcc/objcp/Make-lang.in @@ -89,8 +89,6 @@ objcp/objcp-act.o : objc/objc-act.c \ po-generated: -gtype-objcp.h : s-gtype ; @true - # # Build hooks: diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog index 69963642ee5..9f14343ecec 100644 --- a/gcc/treelang/ChangeLog +++ b/gcc/treelang/ChangeLog @@ -1,3 +1,7 @@ +2005-12-07 Rafael Ávila de Espíndola + + * Make-lang.in: Remove all dependencies on s-gtype. + 2005-12-05 Richard Guenther * treetree.c (tree_code_if_start, tree_code_create_variable, diff --git a/gcc/treelang/Make-lang.in b/gcc/treelang/Make-lang.in index 8e99dd770c2..3c44187b387 100644 --- a/gcc/treelang/Make-lang.in +++ b/gcc/treelang/Make-lang.in @@ -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 - # # Build hooks: