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: Fixed-point branch?


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


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