From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6180 invoked by alias); 27 Apr 2016 20:35:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 6114 invoked by uid 89); 27 Apr 2016 20:35:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Hx-languages-length:1250, o, Search X-HELO: gproxy9-pub.mail.unifiedlayer.com Received: from gproxy9-pub.mail.unifiedlayer.com (HELO gproxy9-pub.mail.unifiedlayer.com) (69.89.20.122) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Wed, 27 Apr 2016 20:35:03 +0000 Received: (qmail 23364 invoked by uid 0); 27 Apr 2016 20:35:02 -0000 Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy9.mail.unifiedlayer.com with SMTP; 27 Apr 2016 20:35:02 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id nYas1s0092f2jeq01Yavxa; Wed, 27 Apr 2016 14:35:02 -0600 X-Authority-Analysis: v=2.1 cv=aJ5j99Nm 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=kziv93cY1bsA:10 a=zstS-IiYAAAA:8 a=QyXUC8HyAAAA:8 a=JmjNOAdv5CSp407qQv4A:9 Received: from [71.215.116.141] (port=33494 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1avWAd-0004OF-KG; Wed, 27 Apr 2016 14:34:51 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH v2 1/8] Fix latent yacc-related bug in gdb/Makefile.in init.c rule Date: Wed, 27 Apr 2016 20:35:00 -0000 Message-Id: <1461789279-15996-2-git-send-email-tom@tromey.com> In-Reply-To: <1461789279-15996-1-git-send-email-tom@tromey.com> References: <1461789279-15996-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} X-SW-Source: 2016-04/txt/msg00610.txt.bz2 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-04-26 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 1335563..dd6869d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-04-26 Tom Tromey + + * Makefile.in (init.c): Search .y files for initialization + functions. + 2016-04-26 Sanimir Agovic Keven Boell Bernhard Heckel 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' | \ -- 2.5.5