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: [Fixed-point] Warning/Error for fixed point constants


Hi,

  Yes, we will support -Wconversion for fixed-point data.
This will involve fixed-point <-> fixed-point, fixed-point <-> integer,
and fixed-point <-> floating-point.  Will take some time to implement.

  Thanks a lot for your input!

Regards,
Chao-ying

----- Original Message ----- 
From: "Manuel LÃpez-IbÃÃez" <lopezibanez@gmail.com>
To: "Chao-ying Fu" <fu@mips.com>
Cc: "Mohamed Shafi" <shafitvm@gmail.com>; <gcc-patches@gcc.gnu.org>
Sent: Thursday, January 11, 2007 10:50 AM
Subject: Re: [Fixed-point] Warning/Error for fixed point constants


> On 11/01/07, Chao-ying Fu <fu@mips.com> wrote:
> > Hello Sir,
> >
> > 2. Yes, there is an internal conversion.  Can you read the spec
> > and let me know if we need warnings when internal conversions among
> > fixed-point types happen?  Thanks!
> >
>
> Hi,
>
> Even if the spec doesn't say that you need a warning, would you wish
> to have a warning when the conversion alters or may alter the value? I
> am not sure how fixed-point works but for example, int i = 1.2 is
> valid in C, however, we have a new warning option Wconversion [*] to
> warn that the 1.2 will be transformed to 1. Would you be interested in
> such a thing for fixed-point values?
>
> Cheers,
>
> Manuel.
>
> [*] http://gcc.gnu.org/wiki/NewWconversion
>


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