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] Making double precision constants work with -fsingle-precision-constant


On Mon, Nov 28, 2005 at 09:11:33PM -0500, Carlos O'Donell wrote:
> Code that uses double precision constants and is compiled with
> -fsingle-precision-constant will have incorrect values without 
> changes to the builtin defines.

Ug.  What a horrid extension.

> According to the specifications in C and C++ the macros need on be
> "constant" values, not constants themselves. 

That said, I'd prefer that we used constants when possible.
I.e. this cast horridness should never be seen unless the
user uses that option.



r~


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