aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-12-18 17:56:17 -0600
committerChristian Biesinger <cbiesinger@google.com>2019-12-19 13:12:30 -0600
commitd411762c45d66b64c5cbfc8a9f004b1f2e1fba4b (patch)
tree08c8638449195f1134ac8ede3d62a8929b6638aa /gdb/ChangeLog
parent1cd4a20a27c430fdd0db8d5b154e9c7860e440f5 (diff)
downloadgdb-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/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8595b6e..60930a7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2019-12-19 Christian Biesinger <cbiesinger@google.com>
+ * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
+ 2 to pow ().
+
+2019-12-19 Christian Biesinger <cbiesinger@google.com>
+
* tui/tui-source.c (tui_source_window::set_contents): Cast argument of
log10 to double to fix Solaris 11 with gcc 5.5.