From patchwork Tue Mar 27 14:56:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 26492 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: 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 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 ; 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 ) id 1f0q20-0048YX-TA; Tue, 27 Mar 2018 09:57:00 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [FYI] Include 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 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 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 . I'm checking this in as obvious. Tested by building. gdb/ChangeLog 2018-03-27 Tom Tromey * dwarf-index-write.c: Include . --- 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 +#include #include #include #include