PR 40752: -Wconversion generates false warnings for operands not larger than target type

Manuel López-Ibáñez lopezibanez@gmail.com
Mon Aug 10 23:50:00 GMT 2009


Modified the patch to make use of the new c-c++-common testsuite.
Bootstrapped and regression tested on x86_64-linux-gnu.

OK for trunk?

2009-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR 40752
	* c-common.c (conversion_warning): Strip useless
	conversions. Recurse for operands of operators. Warn at expression
	location.
testsuite/
	* c-c++-common/Wconversion-pr40752.c: New.

2009/7/22 Manuel López-Ibáñez <lopezibanez@gmail.com>:
> Bootstrapped and regression tested on x86_64-linux-gnu.
>
> OK for trunk?
>
> 2009-07-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
>
>        PR 40752
>        * c-common.c (conversion_warning): Strip useless
>        conversions. Recurse for operands of operators. Warn at expression
>        location.
> testsuite/
>        * gcc.dg/Wconversion-pr40752.c: New.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-pr40752.diff
Type: text/x-diff
Size: 8434 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090810/f2ec0f40/attachment.bin>


More information about the Gcc-patches mailing list