Make the literal argument to pow a double, not an integer
authorChristian Biesinger <cbiesinger@google.com>
Wed, 18 Dec 2019 23:56:17 +0000 (17:56 -0600)
committerChristian Biesinger <cbiesinger@google.com>
Thu, 19 Dec 2019 19:12:30 +0000 (13:12 -0600)
commitd411762c45d66b64c5cbfc8a9f004b1f2e1fba4b
tree08c8638449195f1134ac8ede3d62a8929b6638aa
parent1cd4a20a27c430fdd0db8d5b154e9c7860e440f5
Make the literal argument to pow a double, not an integer

Since pow takes doubles, pass 2.0 instead of 2 to pow ().

Conveniently, this fixes the ambiguous call to pow on Solaris 11
with gcc 5.5 (gcc211 on the compile farm), which has a "using std::pow"
directive in a system header, which brings in float/double/long double
overloads.  Fixes the build on Solaris with enable-targets=all.

gdb/ChangeLog:

2019-12-19  Christian Biesinger  <cbiesinger@google.com>

* score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
2 to pow ().

Change-Id: Ib18e7e4749ddcbff0727b72a31198f8cb84d1993
gdb/ChangeLog
gdb/score-tdep.c
This page took 0.025216 seconds and 4 git commands to generate.