aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-03-28 15:45:03 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2025-03-28 15:45:03 +0100
commitb9f08c8631c2c1a393d7d2bdd41b1b0fe76b1663 (patch)
tree30326f9827b0206a3ca25b0fe4013ab860e0613c /gcc/c
parentbb389fb04b07a491d2ca0380db08b8c43b4239b9 (diff)
downloadgcc-b9f08c8631c2c1a393d7d2bdd41b1b0fe76b1663.zip
gcc-b9f08c8631c2c1a393d7d2bdd41b1b0fe76b1663.tar.gz
gcc-b9f08c8631c2c1a393d7d2bdd41b1b0fe76b1663.tar.bz2
srcextra fixes
Here is a patch which uses sed to fix up the copies of the generated files by flex/bison in the source directories (i.e. what we ship in release tarballs). In that case the generated files are in the same directory as the files they are generated from, so there should be no absolute or relative directories, just the filenames. Furthermore, c.srcextra was duplicating the work of gcc.srcextra, there is nothing C FE specific on gengtype-lex.l. 2025-03-28 Jakub Jelinek <jakub@redhat.com> gcc/ * Makefile.in (gcc.srcextra): Use sed to turn .../gcc/gengtype-lex.l in #line directives into just gengtype-lex.l. gcc/c/ * Make-lang.in (c.srcextra): Don't depend on anything and don't copy anything. gcc/cobol/ * Make-lang.in (cobol.srcextra): Use sed to turn .../gcc/cobol/*.{y,l,h,cc} and cobol/*.{y,l,h,cc} in #line directives into just *.{y,l,h,cc}.
Diffstat (limited to 'gcc/c')
-rw-r--r--gcc/c/Make-lang.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c/Make-lang.in b/gcc/c/Make-lang.in
index 049b266..2517b64 100644
--- a/gcc/c/Make-lang.in
+++ b/gcc/c/Make-lang.in
@@ -131,8 +131,7 @@ c.all.cross:
c.start.encap:
c.rest.encap:
c.srcinfo:
-c.srcextra: gengtype-lex.cc
- -cp -p $^ $(srcdir)
+c.srcextra:
c.tags: force
cd $(srcdir)/c; $(ETAGS) -o TAGS.sub *.cc *.h; \
$(ETAGS) --include TAGS.sub --include ../TAGS.sub