Silence ARI warning about floatformat_to_double
authorTom Tromey <tromey@adacore.com>
Thu, 5 Dec 2019 15:11:31 +0000 (08:11 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 13 Dec 2019 22:15:31 +0000 (15:15 -0700)
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

gdb/ChangeLog
gdb/contrib/ari/gdb_ari.sh
gdb/target-float.c

index 44bb65ffccc3eb7f24c05bb6ee8986eb82d92e33..d107b6cea7fca35696fa2e16f759ccbe14e63a56 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2019-12-13  Tom Tromey  <tromey@adacore.com>
 
        * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
index 300ed761f13f43bc0e05e776ec1a0da38d106cb8..9a5b941d23f2d9a3fd8cb4204360365918240e59 100755 (executable)
@@ -810,7 +810,6 @@ get_frame_locals_address, or get_frame_args_address."
 BEGIN { doc["floatformat_to_double"] = "\
 Do not use floatformat_to_double() from libierty, \
 instead use floatformat_to_doublest()"
-    fix("floatformat_to_double", "gdb/doublest.c", 1)
     category["floatformat_to_double"] = ari_regression
 }
 /(^|[^_[:alnum:]])floatformat_to_double[[:space:]]*\(/ {
index caa6943395016cb19e9dcef1a3bdb5375fc1d7bb..ddf20c89068ecf996e81f4808ff98ead3fe180ff 100644 (file)
@@ -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;
     }