Tested x86_64-pc-linux-gnu, applying to trunk.

-- 8< --

The C++ front-end uses symbols from these directories, so they should also
be in TAGS.

gcc/cp/ChangeLog:

        * Make-lang.in: Also collect tags from libcody and c++tools.
---
 gcc/cp/Make-lang.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
index fb7ae59d9d4..9ec86aac964 100644
--- a/gcc/cp/Make-lang.in
+++ b/gcc/cp/Make-lang.in
@@ -232,8 +232,9 @@ c++.srcinfo:
 c++.srcextra:
 
 c++.tags: force
-       cd $(srcdir)/cp; $(ETAGS) -o TAGS.sub *.cc *.h --language=none \
-         --regex='/DEFTREECODE [(]\([A-Z_]+\)/\1/' cp-tree.def; \
+       cd $(srcdir)/cp; $(ETAGS) -o TAGS.sub *.cc *.h \
+         ../../libcody/*.cc ../../c++tools/*.cc \
+         --language=none --regex='/DEFTREECODE [(]\([A-Z_]+\)/\1/' 
cp-tree.def; \
        $(ETAGS) --include TAGS.sub --include ../TAGS.sub
 
 c++.man: doc/g++.1

base-commit: e3de2962cbac3fc7f1d7c6d0205a62e68f3f4b3a
-- 
2.47.0

Reply via email to