This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Making double precision constants work with -fsingle-precision-constant
- From: Richard Henderson <rth at redhat dot com>
- To: "Carlos O'Donell" <carlos at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Mon, 28 Nov 2005 21:10:45 -0800
- Subject: Re: [PATCH] Making double precision constants work with -fsingle-precision-constant
- References: <20051129021133.GB14313@lios>
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~