[RFA] build: add diagnostics/ to TAGS

Message ID 20260504220736.691817-1-jason@redhat.com
State New
Headers
Series [RFA] build: add diagnostics/ to TAGS |

Commit Message

Jason Merrill May 4, 2026, 10:06 p.m. UTC
  Tested x86_64-pc-linux-gnu, OK for trunk?

-- 8< --

I still use Emacs find-tag to look up functions, and it wasn't finding
anything in diagnostics/.

gcc/ChangeLog:

	* Makefile.in (TAGS): Add diagnostics/ and text-art/.
---
 gcc/Makefile.in | 1 +
 1 file changed, 1 insertion(+)


base-commit: ac1cdcdad9d364f239d075deb7082071c49ddb6d
  

Comments

Andrew Pinski May 4, 2026, 10:31 p.m. UTC | #1
On Mon, May 4, 2026 at 3:08 PM Jason Merrill <jason@redhat.com> wrote:
>
> Tested x86_64-pc-linux-gnu, OK for trunk?

Ok, I think it makes sense to also add `rtl-ssa/*.{cc,h}` and
`sym-exec/*.{cc,h}` too. Though that can be done in a different
commit.

Thanks,
Andrew

>
> -- 8< --
>
> I still use Emacs find-tag to look up functions, and it wasn't finding
> anything in diagnostics/.
>
> gcc/ChangeLog:
>
>         * Makefile.in (TAGS): Add diagnostics/ and text-art/.
> ---
>  gcc/Makefile.in | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gcc/Makefile.in b/gcc/Makefile.in
> index 5e656c3c25b..6bbab6d5f8e 100644
> --- a/gcc/Makefile.in
> +++ b/gcc/Makefile.in
> @@ -4848,6 +4848,7 @@ TAGS: lang.tags
>         done;                                           \
>         $(ETAGS) -o TAGS.sub c-family/*.h c-family/*.cc \
>               *.h *.cc \
> +             diagnostics/*.h diagnostics/*.cc text-art/*.h text-art/*.cc \
>               ../include/*.h ../libiberty/*.c \
>               ../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        \
>
> base-commit: ac1cdcdad9d364f239d075deb7082071c49ddb6d
> --
> 2.53.0
>
  

Patch

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 5e656c3c25b..6bbab6d5f8e 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -4848,6 +4848,7 @@  TAGS: lang.tags
 	done;						\
 	$(ETAGS) -o TAGS.sub c-family/*.h c-family/*.cc \
 	      *.h *.cc \
+	      diagnostics/*.h diagnostics/*.cc text-art/*.h text-art/*.cc \
 	      ../include/*.h ../libiberty/*.c \
 	      ../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	\