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


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]