Gabriel Dos Reis - Re: [PING^3] Wconversion: fixes for C++ front-end (original) (raw)
This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
- From: Gabriel Dos Reis
- To: Manuel López-Ibáñez
- Cc: Paolo Carlini , gcc-patches
- Date: Tue, 6 Feb 2007 16:22:07 -0600 (CST)
- Subject: Re: [PING^3] Wconversion: fixes for C++ front-end
- References: <6c33472e0702060114o72301234qf3348f22dc18f36e@mail.gmail.com> <45C8C804.6060202@suse.de> <87d54n9jop.fsf@soliton.cs.tamu.edu> <6c33472e0702061156i55a18d1ftbc5b2c0d40e5b9ce@mail.gmail.com>
On Tue, 6 Feb 2007, Manuel López-Ibáñez wrote:
| I am waiting for patches to get reviewed. I hope that at least this is | not my fault. If I can do something to get the patches reviewed | faster, please, let me know.
The bits:
if (TREE_TYPE (op0) != result_type)
op0 = cp_convert (result_type, op0);
if (TREE_TYPE (op1) != result_type)
op1 = cp_convert (result_type, op1);
{
convert_and_check (result_type, op0);
op0 = cp_convert (result_type, op0);
}
if (TREE_TYPE (op1) != result_type)
{
convert_and_check (result_type, op1);
op1 = cp_convert (result_type, op1);
}
convert op0, but throw the result away, then call cp_convert to convert again. That looks curious to me. Why would we want to do that?
-- Gaby
- Follow-Ups:
- Re: [PING^3] Wconversion: fixes for C++ front-end
* From: Manuel López-Ibáñez
- Re: [PING^3] Wconversion: fixes for C++ front-end
- References:
- [PING^3] Wconversion: fixes for C++ front-end
* From: Manuel López-Ibáñez - Re: [PING^3] Wconversion: fixes for C++ front-end
* From: Paolo Carlini - Re: [PING^3] Wconversion: fixes for C++ front-end
* From: Gabriel Dos Reis - Re: [PING^3] Wconversion: fixes for C++ front-end
* From: Manuel López-Ibáñez
- [PING^3] Wconversion: fixes for C++ front-end
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |