Fix latent yacc-related bug in gdb/Makefile.in init.c rule
authorTom Tromey <tom@tromey.com>
Thu, 31 Mar 2016 20:16:56 +0000 (14:16 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 17 May 2016 18:01:57 +0000 (12:01 -0600)
gdb's Makefile.in does not currently scan .y files to add global
initializers from these files to init.c.  However, at least ada-exp.y
tries to use this feature.

This patch fixes the problem.

2016-05-17  Tom Tromey  <tom@tromey.com>

* Makefile.in (init.c): Search .y files for initialization
functions.

gdb/ChangeLog
gdb/Makefile.in

index 0c25d8a0ba63fe17603ac1083b48cde913936bc9..4b0c44b6b519a15c02dc08fbde221c7edc33f4a3 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-17  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (init.c): Search .y files for initialization
+       functions.
+
 2016-05-12  Doug Evans  <dje@google.com>
 
        PR symtab/19999
index 2af78a5d27ea6e2fa495f43ab682ee43fdb36986..400d2b0f916632c84a6696d043e04f9c56b7b9d1 100644 (file)
@@ -1360,6 +1360,7 @@ init.c: $(INIT_FILES)
            -e '/version.[co]$$/d' \
            -e '/^[a-z0-9A-Z_]*_[SU].[co]$$/d' \
            -e '/[a-z0-9A-Z_]*-exp.tab.[co]$$/d' \
+           -e 's/-exp\.o$$/-exp.y/' \
            -e 's/\.[co]$$/.c/' \
            -e 's,signals\.c,common/signals\.c,' \
            -e 's|^\([^  /][^     ]*\)|$(srcdir)/\1|g' | \