[PATCH] [5of5] looking for feedback on Wcoercion warning (for stage1)
Fri Aug 11 17:30:00 GMT 2006
(The following patch implements part of the functionality of the
Wcoercion project as explained in
The function unsigned_conversion_warning() in gcc/c-common.c
encapsulates two different and very particular warnings:
1) Warn for negative integer values assigned to unsigned type if
-Wcoercion option is used.
2) Warn for a large constant truncated to unsigned type.
In order to tidy up convert_and_check() and keep toghether the
warnings produced by Wcoercion, I propose the removal of
unsigned_conversion_warning(). Warning 1) is moved into
coercion_warning() while warning 2) is moved directly into
This is the last patch of a series of 5 patches. The previous patch
can be found at
Bootstrapped and tested with --enable-languages=all for trunk revision
115951 on i686-pc-linux-gnu
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3118 bytes
Desc: not available
More information about the Gcc-patches