public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Silence ARI warning about floatformat_to_double
@ 2019-12-13 22:16 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2019-12-13 22:16 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c6cbf900d42cf8f2ebbcf33d799c52c54b9aa9f0

commit c6cbf900d42cf8f2ebbcf33d799c52c54b9aa9f0
Author: Tom Tromey <tromey@adacore.com>
Date:   Thu Dec 5 08:11:31 2019 -0700

    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

Diff:
---
 gdb/ChangeLog              | 7 +++++++
 gdb/contrib/ari/gdb_ari.sh | 1 -
 gdb/target-float.c         | 4 ++--
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 44bb65f..d107b6c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
 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.
 	* utils.c (abort_with_message, dump_core, internal_vproblem): Add
 	ARI marker to abort.
diff --git a/gdb/contrib/ari/gdb_ari.sh b/gdb/contrib/ari/gdb_ari.sh
index 300ed76..9a5b941 100755
--- a/gdb/contrib/ari/gdb_ari.sh
+++ b/gdb/contrib/ari/gdb_ari.sh
@@ -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:]]*\(/ {
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;
     }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-13 22:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-13 22:16 [binutils-gdb] Silence ARI warning about floatformat_to_double Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).