This is the mail archive of the gcc-help@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: Real_cst printing


<Primrose.Mbanefo@Infineon.com> writes:

> Ok. I'm working on that. For some reason I can't find the
> real_to_decimal function during linking.

I don't know how you are doing the link, but real_to_decimal is
defined in gcc/real.c.

> I meant something like. Printf ("real number : %f",
> A_MACRO_USED_TO_GET_PRINTABLE_REAL_VALUES(realNumber));

>From print_rtx in gcc/print-rtl.c:

	  char s[60];

	  real_to_decimal (s, CONST_DOUBLE_REAL_VALUE (in_rtx),
			   sizeof (s), 0, 1);
	  fprintf (outfile, " %s", s);

Ian


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