From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65238 invoked by alias); 14 Sep 2018 16:17:04 -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 65125 invoked by uid 89); 14 Sep 2018 16:16:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Sep 2018 16:16:47 +0000 Received: from John-Baldwins-MacBook-Pro-2.local (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 3642F10AFCD; Fri, 14 Sep 2018 12:16:45 -0400 (EDT) Subject: Re: [RFA] Update gdb's configure instructions To: Tom Tromey , gdb-patches@sourceware.org References: <20180914042946.29248-1-tom@tromey.com> From: John Baldwin Message-ID: <528398ce-fae6-f8c7-0f0b-8b37bbe7871a@baldwin.cx> Date: Fri, 14 Sep 2018 16:17:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180914042946.29248-1-tom@tromey.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2018-09/txt/msg00457.txt.bz2 On 9/13/18 9:29 PM, Tom Tromey wrote: > diff --git a/gdb/README b/gdb/README > index e43887ffcdf..d7ab18ccc6a 100644 > --- a/gdb/README > +++ b/gdb/README > @@ -77,8 +73,8 @@ such as: > If you get other compiler errors during this stage, see the `Reporting > Bugs' section below; there are a few known problems. > > - GDB requires an ISO C (ANSI C) compiler. If you do not have an ISO > -C compiler for your system, you may be able to download and install > + GDB requires a C++ compiler. If you do not have a > +C++ compiler for your system, you may be able to download and install > the GNU CC compiler. It is available via anonymous FTP from the > directory `ftp://ftp.gnu.org/pub/gnu/gcc'. GDB also requires an ISO > C standard library. The GDB remote server, GDBserver, builds with some I would perhaps say "C++11" compiler rather than just C++. Also, might want to say "GNU C++ compiler" here as I noticed you did make that update in some other places further down. > @@ -392,25 +388,12 @@ prefer; but you may abbreviate option names if you use `--'. > `--enable-build-warnings' > When building the GDB sources, ask the compiler to warn about any > code which looks even vaguely suspicious. You should only using > - this feature if you're compiling with GNU CC. It passes the > - following flags: > - -Wimplicit > - -Wreturn-type > - -Wcomment > - -Wtrigraphs > - -Wformat > - -Wparentheses > - -Wpointer-arith > + this feature if you're compiling with the GNU C++ compiler. It > + passes many different warning flags, depending on the exact > + version of the compiler you are using. In practice we seem to enable warnings on all compilers, not just GCC? (Certainly they are enabled out-of-the-box when building with clang as cc) > `--enable-werror' > Treat compiler warnings as werrors. Use this only with GCC. It Same is true for -Werror. -- John Baldwin                                                                            Â