[Fixed-point] Warning/Error for fixed point constants
Manuel López-Ibáñez
lopezibanez@gmail.com
Thu Jan 11 18:51:00 GMT 2007
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
More information about the Gcc-patches
mailing list