This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Include <cmath> in dwarf-index-write.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=608219fb2917d407058952adf164eb616880662b

commit 608219fb2917d407058952adf164eb616880662b
Author: Tom Tromey <tom@tromey.com>
Date:   Tue Mar 27 08:55:13 2018 -0600

    Include <cmath> in dwarf-index-write.c
    
    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>.

Diff:
---
 gdb/ChangeLog           | 4 ++++
 gdb/dwarf-index-write.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 79c981d..8cbb725 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2018-03-27  Tom Tromey  <tom@tromey.com>
+
+	* dwarf-index-write.c: Include <cmath>.
+
 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
 
 	* NEWS: Add entry describing new "set|show varsize-limit" command.
diff --git a/gdb/dwarf-index-write.c b/gdb/dwarf-index-write.c
index 3059e0b..058712d 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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]