This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR 40752: -Wconversion generates false warnings for operands not larger than target type
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, Ian Lance Taylor <iant at google dot com>
- Date: Tue, 11 Aug 2009 00:01:15 +0000 (UTC)
- Subject: Re: PR 40752: -Wconversion generates false warnings for operands not larger than target type
- References: <6c33472e0907211554o743845e6p3d05114274c526ab@mail.gmail.com> <6c33472e0908101650v5a1b829cp835c0f816e6cd8da@mail.gmail.com>
On Tue, 11 Aug 2009, Manuel López-Ibáñez wrote:
> 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?
I still think the warnings for these cases are mostly correct (there are
cases where you may be able to make deductions about the range of possible
values of the expression being converted) and appropriate, and if disabled
should be disabled under some separate -Wno-conversion-whatever option.
The changes to use explicit locations (without changing when the
diagnostics are enabled) are OK.
--
Joseph S. Myers
joseph@codesourcery.com