This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] have pretty printer include NaN representation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]