build: TAGS and .cc transition

A few globs missed in the .c -> .cc transition.  Some targets were looking
at both *.c and *.cc, but there are no longer any .c files to scan.

gcc/ChangeLog:

	* Makefile.in (TAGS): Look at libcpp/*.cc.

gcc/c/ChangeLog:

	* Make-lang.in (c.tags): Look at *.cc.

gcc/cp/ChangeLog:

	* Make-lang.in (c++.tags): Just look at *.cc.

gcc/d/ChangeLog:

	* Make-lang.in (d.tags): Just look at *.cc.

gcc/fortran/ChangeLog:

	* Make-lang.in (fortran.tags): Look at *.cc.

gcc/go/ChangeLog:

	* Make-lang.in (go.tags): Look at *.cc.

gcc/objc/ChangeLog:

	* Make-lang.in (objc.tags): Look at *.cc.

gcc/objcp/ChangeLog:

	* Make-lang.in (obj-c++.tags): Look at *.cc.
This commit is contained in:
Jason Merrill 2022-05-27 12:15:36 -04:00
parent a0bc7fd421
commit a8b5d63503
8 changed files with 10 additions and 10 deletions

View File

@ -4338,10 +4338,10 @@ TAGS: lang.tags
incs="$$incs --include $$dir/TAGS.sub"; \
fi; \
done; \
$(ETAGS) -o TAGS.sub c-family/*.h c-family/*.cc c-family/*.cc \
*.h *.c *.cc \
$(ETAGS) -o TAGS.sub c-family/*.h c-family/*.cc \
*.h *.cc \
../include/*.h ../libiberty/*.c \
../libcpp/*.c ../libcpp/include/*.h \
../libcpp/*.cc ../libcpp/include/*.h \
--language=none --regex="/\(char\|unsigned int\|int\|bool\|void\|HOST_WIDE_INT\|enum [A-Za-z_0-9]+\) [*]?\([A-Za-z_0-9]+\)/\2/" common.opt \
--language=none --regex="/\(DEF_RTL_EXPR\|DEFTREECODE\|DEFGSCODE\|DEFTIMEVAR\|DEFPARAM\|DEFPARAMENUM5\)[ ]?(\([A-Za-z_0-9]+\)/\2/" rtl.def tree.def gimple.def timevar.def \
; \

View File

@ -109,7 +109,7 @@ c.srcinfo:
c.srcextra: gengtype-lex.cc
-cp -p $^ $(srcdir)
c.tags: force
cd $(srcdir)/c; $(ETAGS) -o TAGS.sub *.c *.h; \
cd $(srcdir)/c; $(ETAGS) -o TAGS.sub *.cc *.h; \
$(ETAGS) --include TAGS.sub --include ../TAGS.sub
c.man:
c.srcman:

View File

@ -174,7 +174,7 @@ c++.srcinfo:
c++.srcextra:
c++.tags: force
cd $(srcdir)/cp; $(ETAGS) -o TAGS.sub *.c *.cc *.h --language=none \
cd $(srcdir)/cp; $(ETAGS) -o TAGS.sub *.cc *.h --language=none \
--regex='/DEFTREECODE [(]\([A-Z_]+\)/\1/' cp-tree.def; \
$(ETAGS) --include TAGS.sub --include ../TAGS.sub

View File

@ -279,7 +279,7 @@ d.srcextra:
d.tags: force
cd $(srcdir)/d; \
$(ETAGS) -o TAGS.sub *.c *.cc *.h dmd/*.h dmd/root/*.h; \
$(ETAGS) -o TAGS.sub *.cc *.h dmd/*.h dmd/root/*.h; \
$(ETAGS) --include TAGS.sub --include ../TAGS.sub
d.man: doc/gdc.1

View File

@ -113,7 +113,7 @@ fortran.srcinfo: doc/gfortran.info
-cp -p $^ $(srcdir)/fortran
fortran.tags: force
cd $(srcdir)/fortran; $(ETAGS) -o TAGS.sub *.c *.h; \
cd $(srcdir)/fortran; $(ETAGS) -o TAGS.sub *.cc *.h; \
$(ETAGS) --include TAGS.sub --include ../TAGS.sub
fortran.info: doc/gfortran.info doc/gfc-internals.info

View File

@ -133,7 +133,7 @@ go.srcinfo: doc/gccgo.info
go.srcextra:
go.tags: force
cd $(srcdir)/go; \
$(ETAGS) -o TAGS.sub *.c *.h gofrontend/*.h gofrontend/*.cc; \
$(ETAGS) -o TAGS.sub *.cc *.h gofrontend/*.h gofrontend/*.cc; \
$(ETAGS) --include TAGS.sub --include ../TAGS.sub
go.man: doc/gccgo.1
go.srcman: doc/gccgo.1

View File

@ -102,7 +102,7 @@ objc.srcman:
objc.install-plugin:
objc.tags: force
cd $(srcdir)/objc; $(ETAGS) -o TAGS.sub *.c *.h; \
cd $(srcdir)/objc; $(ETAGS) -o TAGS.sub *.cc *.h; \
$(ETAGS) --include TAGS.sub --include ../TAGS.sub
lang_checks += check-objc

View File

@ -136,7 +136,7 @@ obj-c++.man:
obj-c++.install-plugin:
obj-c++.tags: force
cd $(srcdir)/objcp; $(ETAGS) -o TAGS.sub *.c *.h; \
cd $(srcdir)/objcp; $(ETAGS) -o TAGS.sub *.cc *.h; \
$(ETAGS) --include TAGS.sub --include ../TAGS.sub
lang_checks += check-obj-c++