From patchwork Thu Nov 3 15:39:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 17165 Received: (qmail 114457 invoked by alias); 3 Nov 2016 15:39:36 -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 114352 invoked by uid 89); 3 Nov 2016 15:39:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=yc, 2013-11, 201311, UD:y X-HELO: mail-pf0-f193.google.com Received: from mail-pf0-f193.google.com (HELO mail-pf0-f193.google.com) (209.85.192.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 03 Nov 2016 15:39:24 +0000 Received: by mail-pf0-f193.google.com with SMTP id n85so5168094pfi.3 for ; Thu, 03 Nov 2016 08:39:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=x8dnGuBbSsAOEv6sGK8yGxOHhtt3/C60Cmq8HYbikoQ=; b=Mt6SJPFJqxx6NeYVRetCgC8p/pQxUPNXXwn2YgBmfsUj93pAJIPjlKcDgDsBkHB8ae DhGZx4fFw2WYu/sZhSKorE3a0IX9DcqjmVU6gPW4AYrPPardklHpTXtkdXoGVUKDBOmG ap4JeQilyAfFweKQWTKorO4+N3jQCywcI/GQyB8KiSu6rTbmTKoDFWVFYh22NB+GuoX0 Br6M9Zl5cxuCSXKlG9ZsNDn7NhZm7SBlaDdiSd5NWa6tV6eQr0XniVxdNbCH6NLzLVHG 1BIwHy7niPpjnTwbrJwmI5wQcVES05VGs97Yw1lOFD9UldzyndNV8knsBaL68MaHDtgv 94gw== X-Gm-Message-State: ABUngvfQPITAAI1Uq9dta2/dUa37TjwHHPpHnEiUqnbAhd/0DuYkaTXEbUr73gjK/6LAEA== X-Received: by 10.99.189.1 with SMTP id a1mr14909237pgf.178.1478187563067; Thu, 03 Nov 2016 08:39:23 -0700 (PDT) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id a7sm13612222pfl.87.2016.11.03.08.39.21 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 03 Nov 2016 08:39:22 -0700 (PDT) From: Yao Qi To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 2/2] gdb: Require C++11 References: <1477596094-3244-1-git-send-email-palves@redhat.com> <1477596094-3244-3-git-send-email-palves@redhat.com> Date: Thu, 03 Nov 2016 15:39:13 +0000 In-Reply-To: <1477596094-3244-3-git-send-email-palves@redhat.com> (Pedro Alves's message of "Thu, 27 Oct 2016 20:21:34 +0100") Message-ID: <86twbo7eu6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-IsSubscribed: yes Pedro Alves writes: Hi Pedro, > to. The result would be that a make invocation from the build/gdb/ > directory would use "g++ -std=gnu++11" as expected, while a make > invocation at the top level would not. This happens to break the build if bison is not new enough (bison 2.6.4), See details in the patch below, diff --git a/gdb/Makefile.in b/gdb/Makefile.in index d035d8e..6db63c7 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1894,6 +1894,7 @@ po/$(PACKAGE).pot: force -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \ -e 's/\([ \t;,(]\)free$$/\1xfree/g' \ -e '/^#line.*y.tab.c/d' \ + -e 's/YY_NULL/YY_NULLPTR/g' \ < $@.tmp > $@ rm -f $@.tmp .l.c: