This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFA: Better warnings for CONST_DOUBLE
Richard Henderson <rth@redhat.com> writes:
> On Wed, Jul 27, 2005 at 05:09:09PM -0700, Ian Lance Taylor wrote:
> > +#define CONST_DOUBLE_REAL_VALUE(r) \
> > + ((struct real_value *)&XCNMWINT (r, 0, CONST_DOUBLE, VOIDmode))
>
> If we're going to change this, I think it makes sense to add a
> "struct real_value *" field to the union, so that we don't have
> to have the cast.
Yes. To do that right rtl.h will have to include real.h, and we might
as well fix up rtx_size and CONST_DOUBLE_FORMAT at the same time. I
was going for a minimal approach, but I can try the larger one if that
seems worthwhile in stage 3.
Ian