From patchwork Tue May 17 20:18:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 12318 Received: (qmail 35224 invoked by alias); 17 May 2016 20:18:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 34794 invoked by uid 89); 17 May 2016 20:18:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00, FSL_HELO_HOME, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=no version=3.3.2 spammy=Evans, evans, H*m:tromey, djegooglecom X-HELO: gproxy2-pub.mail.unifiedlayer.com Received: from gproxy2-pub.mail.unifiedlayer.com (HELO gproxy2-pub.mail.unifiedlayer.com) (69.89.18.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Tue, 17 May 2016 20:18:24 +0000 Received: (qmail 18153 invoked by uid 0); 17 May 2016 20:18:21 -0000 Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy2.mail.unifiedlayer.com with SMTP; 17 May 2016 20:18:21 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by CMOut01 with id vYJF1s00U2f2jeq01YJJoQ; Tue, 17 May 2016 14:18:20 -0600 X-Authority-Analysis: v=2.1 cv=FPeImYYs c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=PnD2wP_eR3oA:10 a=_v2sUkyEFrwA:10 a=yrkiwgmsf1kA:10 a=zstS-IiYAAAA:8 a=1XWaLZrsAAAA:8 a=JmjNOAdv5CSp407qQv4A:9 a=4G6NA9xxw8l3yy4pmD5M:22 a=nJcEw6yWrPvoIXZ49MH8:22 Received: from [71.215.116.141] (port=57178 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1b2lRY-0007dG-FF; Tue, 17 May 2016 14:18:16 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [FYI v3 1/8] Fix latent yacc-related bug in gdb/Makefile.in init.c rule Date: Tue, 17 May 2016 14:18:01 -0600 Message-Id: <1463516288-26778-2-git-send-email-tom@tromey.com> In-Reply-To: <1463516288-26778-1-git-send-email-tom@tromey.com> References: <1463516288-26778-1-git-send-email-tom@tromey.com> X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.215.116.141 authed with tom+tromey.com} 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 * Makefile.in (init.c): Search .y files for initialization functions. --- gdb/ChangeLog | 5 +++++ gdb/Makefile.in | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0c25d8a..4b0c44b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-05-17 Tom Tromey + + * Makefile.in (init.c): Search .y files for initialization + functions. + 2016-05-12 Doug Evans PR symtab/19999 diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 2af78a5..400d2b0 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -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' | \