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: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, Ian Lance Taylor <iant at google dot com>
- Date: Fri, 11 Jun 2010 21:57:38 +0200
- Subject: Re: PR 40752: -Wconversion generates false warnings for operands not larger than target type
- References: <6c33472e0907211554o743845e6p3d05114274c526ab@mail.gmail.com> <6c33472e0908101650v5a1b829cp835c0f816e6cd8da@mail.gmail.com> <Pine.LNX.4.64.0908102358530.2744@digraph.polyomino.org.uk>
On 11 August 2009 02:01, Joseph S. Myers <joseph@codesourcery.com> wrote:
> 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.
I committed that part as revision 160631.
Cheers,
Manuel.