public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pushed] build: TAGS and .cc transition
@ 2022-05-31 19:08 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2022-05-31 19:08 UTC (permalink / raw)
  To: gcc-patches

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.

Applying as obvious.

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.
---
 gcc/Makefile.in          | 6 +++---
 gcc/c/Make-lang.in       | 2 +-
 gcc/cp/Make-lang.in      | 2 +-
 gcc/d/Make-lang.in       | 2 +-
 gcc/fortran/Make-lang.in | 2 +-
 gcc/go/Make-lang.in      | 2 +-
 gcc/objc/Make-lang.in    | 2 +-
 gcc/objcp/Make-lang.in   | 2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 731d8dd2a69..020b3b13943 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -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 \
 		; \
diff --git a/gcc/c/Make-lang.in b/gcc/c/Make-lang.in
index 1367a10cee6..9bd9c0ea123 100644
--- a/gcc/c/Make-lang.in
+++ b/gcc/c/Make-lang.in
@@ -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:
diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
index 2de4e47c659..23d98c897b5 100644
--- a/gcc/cp/Make-lang.in
+++ b/gcc/cp/Make-lang.in
@@ -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
 
diff --git a/gcc/d/Make-lang.in b/gcc/d/Make-lang.in
index f3e34c54015..9f134370218 100644
--- a/gcc/d/Make-lang.in
+++ b/gcc/d/Make-lang.in
@@ -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
diff --git a/gcc/fortran/Make-lang.in b/gcc/fortran/Make-lang.in
index a558fc886ea..1cb47cb1a52 100644
--- a/gcc/fortran/Make-lang.in
+++ b/gcc/fortran/Make-lang.in
@@ -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
diff --git a/gcc/go/Make-lang.in b/gcc/go/Make-lang.in
index 31c677366e4..0e81268ece3 100644
--- a/gcc/go/Make-lang.in
+++ b/gcc/go/Make-lang.in
@@ -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
diff --git a/gcc/objc/Make-lang.in b/gcc/objc/Make-lang.in
index 6e4ebf58497..b2ebd869480 100644
--- a/gcc/objc/Make-lang.in
+++ b/gcc/objc/Make-lang.in
@@ -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
diff --git a/gcc/objcp/Make-lang.in b/gcc/objcp/Make-lang.in
index fc8e05befa1..bd2466c4471 100644
--- a/gcc/objcp/Make-lang.in
+++ b/gcc/objcp/Make-lang.in
@@ -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++

base-commit: 0f4df800b15437df1e00f198f86edc7163f1fc94
-- 
2.27.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-31 19:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 19:08 [pushed] build: TAGS and .cc transition Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).