Make-lang.in (c.tags): Also include libcpp TAGS.
authorJason Merrill <jason@redhat.com>
Wed, 28 Oct 2015 19:45:33 +0000 (15:45 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 28 Oct 2015 19:45:33 +0000 (15:45 -0400)
gcc/c/
* Make-lang.in (c.tags): Also include libcpp TAGS.
gcc/cp/
* Make-lang.in (c++.tags): Also include libcpp TAGS.

From-SVN: r229504

gcc/ChangeLog
gcc/Makefile.in
libiberty/ChangeLog
libiberty/Makefile.in

index bc863ce1025134d0ed7c4893807558dc56c9917e..c2d465a61e3b2af235bfacca67555c62d84df41c 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-28  Jason Merrill  <jason@redhat.com>
+
+       * Makefile.in (TAGS): Include libcpp and libiberty.
+
 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
 
        * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
index 2685b3855c54d5f7265a6bd410ac64e45f5c9307..6778f7d7a9b9d6389d6497692215781ce1d45333 100644 (file)
@@ -3907,7 +3907,8 @@ TAGS: lang.tags
          fi;                                           \
        done;                                           \
        etags -o TAGS.sub c-family/*.h c-family/*.c *.h *.c *.cc \
-             ../include/*.h \
+             ../include/*.h ../libiberty/*.c \
+             ../libcpp/*.c ../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\).*(\([A-Za-z_0-9]+\)/\2/" rtl.def tree.def gimple.def \
              --language=none --regex="/DEFTIMEVAR (\([A-Za-z_0-9]+\)/\1/" timevar.def \
index 3fe0f69fac5d1535a8434f8fdd30f21a10b6458e..b5ac8363c3609eb849f84883efbba25fb20525e2 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-28  Jason Merrill  <jason@redhat.com>
+
+       * Makefile.in (TAGS): Fix for separate build directory.
+
 2015-10-18  Roland McGrath  <roland@gnu.org>
            Iain Sandoe  <iain@codesourcery.com>
 
index 7d7e2f41efa44bed7341b07f9cee7fde240cf216..9f7f70dae212d96a35a4013a13af9eb09b518062 100644 (file)
@@ -406,12 +406,10 @@ stamp-noasandir:
        else true; fi
        touch stamp-noasandir
 
-.PHONY: all etags tags ls clean stage1 stage2
+.PHONY: all etags tags TAGS ls clean stage1 stage2
 
-etags tags: TAGS etags-subdir
-
-TAGS: $(CFILES)
-       etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
+etags tags TAGS: etags-subdir
+       cd $(srcdir); etags $(CFILES)
 
 # The standalone demangler (c++filt) has been moved to binutils.
 # But make this target work anyway for demangler hacking.