This is the mail archive of the gcc@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.c implementation


On Tue, Oct 22, 2002 at 06:38:09AM -0400, Robert Dewar wrote:
> One thing I am not clear on for all ports is whether any of them trust
> the assembler to do decimal to float conversion correctly. I know that
> this was the case in GCC 2.8.1, and if you do that, the game gets lost
> at the assembler level. It is definitely important to generate all
> float constants in proper machine form in hex.

The only place this happens is if the target allows fp constants
as arguments to an instruction, e.g. on m68k.  Which is probably
going to fail if you try to put numbers like "+Inf" or whatnot
there.  One could consider that a port bug that it allows this.

Otherwise, we do emit fp constants as integers.  See assemble_real
in varasm.c.


r~


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