This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] have pretty printer include NaN representation
- From: Jeff Law <law at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 3 Jul 2018 18:04:45 -0600
- Subject: Re: [PATCH] have pretty printer include NaN representation
- References: <ca29317f-db53-3bb5-b9ff-8cdad90d243d@gmail.com>
On 07/03/2018 04:59 PM, Martin Sebor wrote:
> The pretty-printer formats NaNs simply as Nan, even though
> there is much more to a NaN than than that. At the very
> least, one might like to know if the NaN is signaling or
> quiet, negative or positive. If it's not in a canonical
> form, one might also be interested in the significand
> and exponent parts. The attached patch enhances
> the pretty printer to include all these details in
> its detailed output.
>
> Tested by bootstrapping & regtesting on x86_64-linux.
>
> Martin
>
> gcc-print-real-cst.diff
>
>
> gcc/ChangeLog:
>
> * print-tree.c (print_real_cst): New function.
> (print_node_brief): Call it.
> (print_node): Ditto.
OK.
jeff