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>.
This commit is contained in:
Tom Tromey 2018-03-27 08:55:13 -06:00
parent 3fcded8f30
commit 608219fb29
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -34,6 +34,7 @@
#include "psympriv.h"
#include <algorithm>
#include <cmath>
#include <set>
#include <unordered_map>
#include <unordered_set>