This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fixed-point branch?
- From: Mark Mitchell <mark at codesourcery dot com>
- To: "Fu, Chao-Ying" <fu at mips dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, Richard Henderson <rth at redhat dot com>, GCC <gcc at gcc dot gnu dot org>, "Stephens, Nigel" <nigel at mips dot com>, "Thekkath, Radhika" <radhika at mips dot com>
- Date: Fri, 08 Jun 2007 19:23:27 -0700
- Subject: Re: Fixed-point branch?
- References: <3CB54817FDF733459B230DD27C690CEC03EE8E9D@Exchange.mips.com>
Fu, Chao-Ying wrote:
> Right now, the fixed-point support is a configure-time option.
> Each target can decide to support it or not. I think there is no
> harm to enable for every target. But, each target needs to modify
> tm.h tm.c tm-modes.def to set or change some target macros.
I would suggest making it a configure-time option, and eliminating the
target hook. Then, people can turn it on when they want. If they try
to turn it on for a target that doesn't have the necessary support, the
compiler will break, and they can fix it.
> It's hard to pick up a name. Maybe we will change it to
> the following as Nigel suggested.
>
> /* Conversions involving fractional fixed point types without
> saturation, including:
> fractional to fractional (of different precision),
> signed integer to fractional,
> fractional to signed integer,
> floating point to fractional,
> fractional to floating point. */
> DEF_RTL_EXPR(FRACT_CONVERT, "fract_convert", "e", RTX_UNARY)
Yes, I think that's better.
Thanks!
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713