Message ID | 20180327145657.27534-1-tom@tromey.com |
---|---|
State | New, archived |
Headers |
Received: (qmail 86010 invoked by alias); 27 Mar 2018 14:57:07 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <gdb-patches.sourceware.org> List-Unsubscribe: <mailto:gdb-patches-unsubscribe-##L=##H@sourceware.org> List-Subscribe: <mailto:gdb-patches-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 86000 invoked by uid 89); 27 Mar 2018 14:57:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: gateway31.websitewelcome.com Received: from gateway31.websitewelcome.com (HELO gateway31.websitewelcome.com) (192.185.143.36) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Mar 2018 14:57:04 +0000 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 34E2016C475 for <gdb-patches@sourceware.org>; Tue, 27 Mar 2018 09:57:01 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 0q21frC7mntAo0q21fUgsV; Tue, 27 Mar 2018 09:57:01 -0500 Received: from 174-29-60-18.hlrn.qwest.net ([174.29.60.18]:39886 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from <tom@tromey.com>) id 1f0q20-0048YX-TA; Tue, 27 Mar 2018 09:57:00 -0500 From: Tom Tromey <tom@tromey.com> To: gdb-patches@sourceware.org Cc: Tom Tromey <tom@tromey.com> Subject: [FYI] Include <cmath> in dwarf-index-write.c Date: Tue, 27 Mar 2018 08:56:57 -0600 Message-Id: <20180327145657.27534-1-tom@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BWhitelist: no X-Source-L: No X-Exim-ID: 1f0q20-0048YX-TA X-Source-Sender: 174-29-60-18.hlrn.qwest.net (bapiya.Home) [174.29.60.18]:39886 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes |
Commit Message
Tom Tromey
March 27, 2018, 2:56 p.m. UTC
On x86-64 Fedora 26, when building with the system gcc, I get: ../../binutils-gdb/gdb/dwarf-index-write.c: In member function ‘void debug_names::build()’: ../../binutils-gdb/gdb/dwarf-index-write.c:705:13: error: ‘pow’ is not a member of ‘std’ There are actually more messages, but this is sufficient to show the problem. The fix is to include <cmath>. I'm checking this in as obvious. Tested by building. gdb/ChangeLog 2018-03-27 Tom Tromey <tom@tromey.com> * dwarf-index-write.c: Include <cmath>. --- gdb/ChangeLog | 4 ++++ gdb/dwarf-index-write.c | 1 + 2 files changed, 5 insertions(+)
Comments
On 2018-03-27 10:56, Tom Tromey wrote: > On x86-64 Fedora 26, when building with the system gcc, I get: > > ../../binutils-gdb/gdb/dwarf-index-write.c: In member function ‘void > debug_names::build()’: > ../../binutils-gdb/gdb/dwarf-index-write.c:705:13: error: ‘pow’ is not > a member of ‘std’ > > There are actually more messages, but this is sufficient to show the > problem. > > The fix is to include <cmath>. > > I'm checking this in as obvious. Tested by building. > > gdb/ChangeLog > 2018-03-27 Tom Tromey <tom@tromey.com> > > * dwarf-index-write.c: Include <cmath>. > --- > gdb/ChangeLog | 4 ++++ > gdb/dwarf-index-write.c | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/gdb/dwarf-index-write.c b/gdb/dwarf-index-write.c > index 3059e0b776..058712d9e2 100644 > --- a/gdb/dwarf-index-write.c > +++ b/gdb/dwarf-index-write.c > @@ -34,6 +34,7 @@ > #include "psympriv.h" > > #include <algorithm> > +#include <cmath> > #include <set> > #include <unordered_map> > #include <unordered_set> Oops, thanks!
diff --git a/gdb/dwarf-index-write.c b/gdb/dwarf-index-write.c index 3059e0b776..058712d9e2 100644 --- a/gdb/dwarf-index-write.c +++ b/gdb/dwarf-index-write.c @@ -34,6 +34,7 @@ #include "psympriv.h" #include <algorithm> +#include <cmath> #include <set> #include <unordered_map> #include <unordered_set>