This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

gencheck for subdirs


This patch generates TREE_CHECK macros for lang-tree.def files, in
particular cp/cp-tree.def. A separate patch using them will be
provided later.

Regards,
Martin

Wed Aug 26 09:11:48 1998  Martin von L÷wis  <loewis@informatik.hu-berlin.de>

	* Makefile.in: Add lang_tree_files and gencheck.h.
	* configure.in: Generate them.
	* gencheck.h: Include gencheck.h.

Index: Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.157
diff -c -p -r1.157 Makefile.in
*** Makefile.in	1998/08/18 10:26:35	1.157
--- Makefile.in	1998/08/25 06:43:29
*************** build_xm_file=@build_xm_file_list@
*** 243,248 ****
--- 243,249 ----
  host_xm_file=@host_xm_file_list@
  lang_specs_files=@lang_specs_files@
  lang_options_files=@lang_options_files@
+ lang_tree_files=@lang_tree_files@
  GCC_THREAD_FILE=@thread_file@
  GTHREAD_FLAGS=@gthread_flags@
  # Be prepared for gcc2 merges.
*************** s-check : gencheck $(srcdir)/move-if-cha
*** 1346,1352 ****
  	$(srcdir)/move-if-change tmp-check.h tree-check.h
  	touch s-check
  
! gencheck : gencheck.o tree.def $(HOST_LIBDEPS)
  	$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
  	 gencheck.o $(HOST_LIBS)
  
--- 1347,1353 ----
  	$(srcdir)/move-if-change tmp-check.h tree-check.h
  	touch s-check
  
! gencheck : gencheck.o tree.def $(lang_tree_files) $(HOST_LIBDEPS)
  	$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
  	 gencheck.o $(HOST_LIBS)
  
*************** distclean: clean lang.distclean
*** 2214,2220 ****
  	-rm -f md cstamp-h
  	-rm -f config.status config.run config.cache config.bak
  	-rm -f Make-lang Make-hooks Make-host Make-target
! 	-rm -f Makefile specs.h options.h *.oaux
  	-rm -f gthr-default.h
  	-rm -f */stage1 */stage2 */stage3 */stage4 */include
  	-rm -f c-parse.output
--- 2215,2221 ----
  	-rm -f md cstamp-h
  	-rm -f config.status config.run config.cache config.bak
  	-rm -f Make-lang Make-hooks Make-host Make-target
! 	-rm -f Makefile specs.h options.h gencheck.h *.oaux
  	-rm -f gthr-default.h
  	-rm -f */stage1 */stage2 */stage3 */stage4 */include
  	-rm -f c-parse.output
Index: configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.138
diff -c -p -r1.138 configure.in
*** configure.in	1998/08/14 09:23:45	1.138
--- configure.in	1998/08/25 06:43:47
*************** AC_SUBST(gthread_flags)
*** 3600,3607 ****
  
  lang_specs_files=
  lang_options_files=
! rm -f specs.h options.h
! touch specs.h options.h
  for subdir in . $subdirs
  do
  	if test -f $srcdir/$subdir/lang-specs.h; then
--- 3606,3614 ----
  
  lang_specs_files=
  lang_options_files=
! lang_tree_files=
! rm -f specs.h options.h gencheck.h
! touch specs.h options.h gencheck.h
  for subdir in . $subdirs
  do
  	if test -f $srcdir/$subdir/lang-specs.h; then
*************** do
*** 3612,3617 ****
--- 3619,3628 ----
  		echo "#include \"$subdir/lang-options.h\"" >>options.h
  		lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
  	fi
+ 	if test -f $srcdir/$subdir/$subdir-tree.def; then
+ 		echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
+ 		lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
+ 	fi
  done
  
  # These (without "all_") are set in each config-lang.in.
*************** AC_SUBST(build_xm_file_list)
*** 3803,3808 ****
--- 3814,3820 ----
  AC_SUBST(host_xm_file_list)
  AC_SUBST(lang_specs_files)
  AC_SUBST(lang_options_files)
+ AC_SUBST(lang_tree_files)
  AC_SUBST(thread_file)
  AC_SUBST(gcc_version)
  AC_SUBST(gcc_version_trigger)
Index: gencheck.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/gencheck.c,v
retrieving revision 1.4
diff -c -p -r1.4 gencheck.c
*** gencheck.c	1998/07/17 15:00:10	1.4
--- gencheck.c	1998/08/25 06:44:02
*************** Boston, MA 02111-1307, USA.  */
*** 25,30 ****
--- 25,31 ----
  
  char *tree_codes[] = {
  #include "tree.def"
+ #include "gencheck.h"
  (char*)0
  };
  



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