From patchwork Thu Dec 5 15:44:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Simon Marchi (Code Review)" X-Patchwork-Id: 36536 Received: (qmail 65271 invoked by alias); 5 Dec 2019 15:45:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 64750 invoked by uid 89); 5 Dec 2019 15:45:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=dto, HContent-Transfer-Encoding:8bit X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Dec 2019 15:45:04 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id CA11320A88; Thu, 5 Dec 2019 10:45:02 -0500 (EST) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [8.43.85.239]) by mx1.osci.io (Postfix) with ESMTP id 6CB6F203AF for ; Thu, 5 Dec 2019 10:44:59 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id 5F2BB28174 for ; Thu, 5 Dec 2019 10:44:59 -0500 (EST) X-Gerrit-PatchSet: 1 Date: Thu, 5 Dec 2019 10:44:59 -0500 From: "Tom Tromey (Code Review)" To: gdb-patches@sourceware.org Message-ID: Auto-Submitted: auto-generated X-Gerrit-MessageType: newchange Subject: [review] Silence ARI warning about floatformat_to_double X-Gerrit-Change-Id: I778a17a04da417c113194004dd7de3b1df381266 X-Gerrit-Change-Number: 745 X-Gerrit-ChangeURL: X-Gerrit-Commit: 7a85dd432e16002893670d7395cf7be08322442e References: Reply-To: tromey@sourceware.org, gdb-patches@sourceware.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Gerrit/3.0.3-79-g83ff7f88f1 Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/745 ...................................................................... Silence ARI warning about floatformat_to_double This silences ARI at the one spot that is permitted to call floatformat_to_double. gdb/ChangeLog 2019-12-05 Tom Tromey * target-float.c (host_float_ops::from_target): Add ARI comment. Change-Id: I778a17a04da417c113194004dd7de3b1df381266 --- M gdb/ChangeLog M gdb/target-float.c 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 36f407f..fe81ff8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2019-12-05 Tom Tromey + * target-float.c (host_float_ops::from_target): Add ARI + comment. + +2019-12-05 Tom Tromey + * utils.c (abort_with_message, dump_core, internal_vproblem): Add ARI marker to abort. * event-top.c (handle_sigsegv): Add ARI marker to abort. 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 @@ { 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; }