diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-12-18 17:56:17 -0600 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-12-19 13:12:30 -0600 |
commit | d411762c45d66b64c5cbfc8a9f004b1f2e1fba4b (patch) | |
tree | 08c8638449195f1134ac8ede3d62a8929b6638aa /gdb/opencl-lang.c | |
parent | 1cd4a20a27c430fdd0db8d5b154e9c7860e440f5 (diff) | |
download | gdb-d411762c45d66b64c5cbfc8a9f004b1f2e1fba4b.zip gdb-d411762c45d66b64c5cbfc8a9f004b1f2e1fba4b.tar.gz gdb-d411762c45d66b64c5cbfc8a9f004b1f2e1fba4b.tar.bz2 |
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
Diffstat (limited to 'gdb/opencl-lang.c')
0 files changed, 0 insertions, 0 deletions