Include <cmath> in dwarf-index-write.c
authorTom Tromey <tom@tromey.com>
Tue, 27 Mar 2018 14:55:13 +0000 (08:55 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 27 Mar 2018 14:55:13 +0000 (08:55 -0600)
commit608219fb2917d407058952adf164eb616880662b
tree39a98fc54c13e10a57a1a89ff0019c80bf4db891
parent3fcded8f30b6b0c1930d4f82914476315027aa2e
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>.
gdb/ChangeLog
gdb/dwarf-index-write.c