aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-float.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-12-05 08:11:31 -0700
committerTom Tromey <tromey@adacore.com>2019-12-13 15:15:31 -0700
commitc6cbf900d42cf8f2ebbcf33d799c52c54b9aa9f0 (patch)
tree0fcf10ac1e19ed637c644a63b76765763d5e63c2 /gdb/target-float.c
parent036003a671233c43e35b3004f91e4cbd61255cf3 (diff)
downloadgdb-c6cbf900d42cf8f2ebbcf33d799c52c54b9aa9f0.zip
gdb-c6cbf900d42cf8f2ebbcf33d799c52c54b9aa9f0.tar.gz
gdb-c6cbf900d42cf8f2ebbcf33d799c52c54b9aa9f0.tar.bz2
Silence ARI warning about floatformat_to_double
This silences ARI at the one spot that is permitted to call floatformat_to_double, and also removes the corresponding "fix" call from gdb_ari.sh -- it was incorrect, and now is not needed. gdb/ChangeLog 2019-12-13 Tom Tromey <tromey@adacore.com> * contrib/ari/gdb_ari.sh: Remove "fix" call for floatformat_to_double. * target-float.c (host_float_ops<T>::from_target): Add ARI comment. Change-Id: I778a17a04da417c113194004dd7de3b1df381266
Diffstat (limited to 'gdb/target-float.c')
-rw-r--r--gdb/target-float.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target-float.c b/gdb/target-float.c
index caa6943..ddf20c8 100644
--- a/gdb/target-float.c
+++ b/gdb/target-float.c
@@ -647,8 +647,8 @@ host_float_ops<T>::from_target (const struct floatformat *fmt,
{
double dto;
- floatformat_to_double (fmt->split_half ? fmt->split_half : fmt,
- from, &dto);
+ floatformat_to_double /* ARI: floatformat_to_double */
+ (fmt->split_half ? fmt->split_half : fmt, from, &dto);
*to = (T) dto;
return;
}